Newest Industry

Evolving the Online Performance Experience

Apache and mod_rewrite: More Zombified Idiots Dispatched

leave a comment »

I have been seeing a large number of hits with the following User-Agent string in my logs lately:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
  1. Firebird hasn’t existed as a browser for a very long time
  2. A build date of October 7, 2003???
  3. From 3 separate IP Addresses

This Apache REWRITE rule took care of this issue.

RewriteCond %{HTTP_USER_AGENT} .*Gecko\/20031007.*
RewriteRule ^.*$ http://www.pierzchala.com:9080/ [R,L,NS]

Try the URL…it points to this iptables rule.

/sbin/iptables -A INPUT -p tcp -i eth0 -s 0/0 --dport 9080 -j DROP

I love Linux!

Advertisement

Written by Stephen

May 2 2005 at 12:37

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 269 other followers