Forum Moderators: coopster & phranque

Message Too Old, No Replies

Yet another bot trap script

that allows curious users that got trapped by accident to untrap

         

moltar

11:26 pm on Aug 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wrote my own bot trap script today. The cool feature is that it allows a "curious" user, who was sniffing the code and got trapped, to get untrapped right away.

If innocent user gets trapped, script displays a page that asks user to enter the "string" and submit (string is their IP address). If the string matches with their IP (passed in hidden input), it removes user from trap. BUT user has only one chance. If user leaves the page and comes back, it will not show the form to the user again. It will just say "You are banned". So if the actual bot gets trapped, and the owner of the bot decides to see what happened, he/she won't get the form for removing themselves from ban.

Also it sends notification to webmaster by email.

The code is too big to post here. If someone wants it, just sticky me with your email address. And, of course, it is free!

wkitty42

12:20 am on Aug 13, 2003 (gmt 0)

10+ Year Member



what method of blocking does it use? .htaccess? firewall rules modification? something else?

moltar

3:05 am on Aug 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It uses .htaccess

claus

3:09 am on Aug 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<edit: deleted question> a stupid one because of forum name...duh