<Files ~ "^.*$">
order allow,deny
allow from all
deny from env=ban
</Files>
----------------------------------------
I assumed this would block me from accessing my site but I can still get to it. I've placed the trap.cgi script in my root rather than my cgi bin and this appears to bw working as it should but I cant understand why I can access the site if its blocked.
Can anyone help me with this please .
Many Thanks
Andy
Very simple to fix - that is, if you recognize what's wrong. :)
It looks like you took the perl script from one thread and mixed it with .htaccess code from another - and that's where the problem lies.
If you change this line...
deny from env=ban
...to this...
deny from env=getout
...I'm sure you'll find you can no longer visit your own website. ;)
You're obviously aware of the first thread, "Ban malicious visitors with this Perl Script [webmasterworld.com]", but for complete picture, there are two follow-up threads:
bad-bot script: follow-up? [webmasterworld.com]
modified "bad-bot" script blocks site downloads [webmasterworld.com]
If you feel more comfortable with PHP than perl, you might like to have a look at these threads:
PHP Spider Trap [webmasterworld.com]
Updated PHP Bad Bot Script [webmasterworld.com]