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} ^* [OR]
RewriteCond %{HTTP_REFERER} ^*
RewriteRule .* - [F,L]

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