View Single Post
Old 2006-11-09, 01:54 PM   #7
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Quote:
Originally Posted by gamester View Post
Block traffic from multiple referrers

RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} anotherbadsite\.com
RewriteRule .* - [F]
The way that is written it has the one draw back in that a legitimate user from http://thisbadsite.com will be blocked too.
Code:
RewriteCond %{HTTP_REFERER} ^(www\.)?badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^(www\.)?anotherbadsite\.com
Would be a way round it
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote