• Home
  • Contact
  • Log in
 
« Lebanese foodCold ride »

Stupid referrer spam

01/07/05

Permalink 01:49:53 pm, by stjeanp Email , 91 words   English (US)
Categories: Blog stuff

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.

Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)