View Single Post
Old 01-26-2003, 05:47 PM  
X37375787
Guest
 
Posts: n/a
Quick htaccess redirection question

This is how my current htaccess looks like

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx:80.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/error404.html
RewriteCond %{HTTP_REFERER} ^http://.+\.sex-top.ru/* [NC]
RewriteRule .*$ http://www.domain.com/error404.html



The first part is obviously for hotlink protection, and the second RewriteCondition/Rule combo should actually cause all traffic from sex-top.ru to get redirected to the error404.html page, however it is not working. Am I missing some arguments?

  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote