Referrer Spam
15 December 2004, the wee hours
In an attempt to clean up my referrer logs which have become inundated with spam, I have blocked requests to this page from referrers with at least 2 dashes in their name that are .info domains. If you notice any problems please let me know. Of course, the problem here is that if you do have any problems, you probably won’t see this post.
I am blocking the spam using the following commands in my .htaccess
file:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} ^.*(-).*(-).*(-).*$
RewriteRule ^.* � [F,L]
- Download this code: /static/code/5.txt
This will turn on mod_rewrite
, check if the referrer URL has 2 dashes and ends in .info, and if it does send back a forbidden error.
Great idea! I’ve been battling poker sites for the past couple days also… Nice blog by the way!
by Joel Blain on January 19 2005, 1:24 am #