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!