View Single Post
Old 2008-12-15, 06:15 PM   #7
Mr Spock
You can now put whatever you want in this space :)
 
Mr Spock's Avatar
 
Join Date: Nov 2006
Location: Vulcan
Posts: 695
Quote:
Originally Posted by cd34 View Post
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.
Changed it as you suggested , but if I click the link on asktiava.com to my site it doesn't redirect?
Mr Spock is offline   Reply With Quote