[thelist] Redirect user agent to warning page
John C Bullas
jcbullas at nildram.co.uk
Sun Nov 16 10:03:51 CST 2003
At 11:44 16/11/2003, Raditha Dissanayake wrote
>Hi,
>
>What you are trying to do will not work because almost all downloaders can
>change their identity very easily. If you want to go ahead with it anyway
>you might want to refer to the Apache Url Rewriting guide which has a
>couple of example that deals with serving different responses to different
>browsers.
>
>A better approach might be for you to indentify this particular users ip
>or network and block access to that ip. This can also be done with url
>rewrites.
>
>If you are lucky the downloader reffered to might be well written and
>might actually obey the robots.txt file. If it does this might be the
>simplest approach.
OK, I set up a custom 401 page in /401/
directory I want to block is
/ime/ down from root
.htaccess deny gives a server generated 401 error
when a blocked IP tries to access this diectory.....
BUT Not my custom one in /401/401.php
why would this be?
The .htaccess file in /ime/
has
ErrorDocument 401 401/401.php
<Limit GET>
order allow,deny
allow from all
deny from 82.133.113.185 #nildram.co.uk test
</Limit>
in it AND it blocks my IP!!!
it just won't use my custom 401 page in /401/ off root
FB
Resolution?
More information about the thelist
mailing list