Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- A Close to perfect .htaccess ban list


58sniper - 1:44 pm on Sep 26, 2002 (gmt 0)


Okay, this brings up a somewhat related question...

I'm trying to ban one site from getting to me. I want to redirect to a page called /robots.php

So I tried this:

rewriteEngine On
rewriteCond {HTTP_REFERER} ^http://(www\.)?domain.com [NC,OR]
RewriteRule ^.*$ /robots.php [L]

but that seems to block everyone. What am I doing wrong?


Thread source:: http://www.webmasterworld.com/perl/687.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com