View Single Post
Old 2008-12-15, 02:11 PM   #6
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Yes NY Jester, that snippet would work for banning 1 domain.

Code:
RewriteCond %(HTTP_REFERER) ^http(s)?://(www\.)?http://www.asktiava.com/search/.$[NC,OR]
this will actually look for http://http://www.asktiava as the referrer which is probably not what you are seeing

as NY Jester says:

Code:
RewriteCond %(HTTP_REFERER) ^http(s)?://(www\.)?asktiava.com/search/[NC,OR]
I would get rid of the .$ at the end as it would force a match of 1 character -- regexp is left matched and would basically say that this needs to be anchored to the left. Same thing about the http(s)? that means that the url could be http:// or https:// the (www\.)? means that the www. is optional.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote