View Single Post
Old 2005-04-04, 02:18 PM   #10
kalle7
Hey, can you take the wheel for a second, I have to scratch my self in two places at once
 
kalle7's Avatar
 
Join Date: Jan 2004
Location: Here and there...
Posts: 182
I seem to have a problem getting this domain blocking thing to work in htaccess:

This one works:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.top-teen-sex.com/
RewriteRule /* http://www.google.com [R,L]

But if I add one more domain to the blocking list it does not work anymore:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.top-teen-sex.com/
RewriteCond %{HTTP_REFERER} ^http://sex-in-school.com/
RewriteRule /* http://www.google.com [R,L]

Does anyone know what I am doing wrong and can suggest a better way to do this. I also tried the http://www.htaccesstools.com/block-hitbots/ , but it only works with one domain blocked. Drives me nuts lol
kalle7 is offline   Reply With Quote