Recent Topics

1 Feb 05, 2005 11:02    

Hi all. As with most people, my referer spam has gone through the roof recently. It's not a problem for my blog, as I use the check to see if they actually link, but it's still eating up bandwidth. At the moment I'm using:

RewriteCond %{HTTP_REFERER} ^http://(www\.)?homepages.pathfinder.gr/.*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?online-poker.fly.to/.*$ [NC,OR]
RewriteRule \.*$ http://www.fbi.gov [R,L]

to block the ones I don't want, but this doesn't seem to block subdomains of those domanis. Anyone know what the syntax is I should be using to block all subdomains on these domains?

Thanks
Stuart

2 Feb 05, 2005 19:30


RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)online-poker(-|.).*$ [NC,OR]

and just a reminder to anyone messing with this:
the first condition needs to end in

[OR]

the middles conditions need to end in

[NC OR]

and your last condition (before the rule) needs to end in

[NC]


Form is loading...