Stupid referrer spam

Grrr… I’ve wasted a good chunk of my time cleaning up a bunch of referrer spammers. They’ve now been banninated inside apache and won’t be getting anything but a 403. In case anyone’s interested, here’s what I’ve used to ban them (I’m obvously changing the domain names so that they don’t get any credit whatsoever).

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://www.foo.com/.* [OR]
RewriteCond %{HTTP_REFERER} ^http://www.bar.com/.*
RewriteRule .* - [F,L]

Edit it to suit your needs and then put it in your .htaccess or httpd.conf file.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>