Back | Reverse | Quick Reply | Post Reply |

How does a Bot Trap work?
Link | by Username on 2009-12-06 07:49:01
I was snooping round and one of the scripts read some url with "bot trap" and "IMPORTANT! Do not click on this link". Wondering how it catches bots and what will they be after that :o Thanks :)


Re: How does a Bot Trap work?
Link | by gendou on 2009-12-06 08:10:21
Poorly coded (and therefore potentially damaging) bots that ignore robots.txt and crawl links may follow the link.
Normal users won't see the link because there's noting between the <a> and </a>, so nothing visible to click on.
When the link is followed three times (allowing for overly-curious users peeking at the source code), the IP is blocked temporarily.
The IP is identified and leniency granted by the following code (well, something close to it):
session_start();
if(++$_SESSION['bot-trap'] >= 3) banIpAddress($_SERVER['REMOTE_ADDR']);
session_write_close();



Re: How does a Bot Trap work?
Link | by Username on 2009-12-06 08:21:26 (edited 2009-12-06 08:25:18)
Cool! :D Thanks for the enlightenment. (Luckily I'm not a button presser :P)

Good job with these :) You make us safer.


Re: How does a Bot Trap work?
Link | by on 2009-12-07 03:56:25
wow...Thanks I've been wondering what that means for a while cus i was at a friend
house a couple of weeks ago and saw this and luckily he didn't click on it.

Tales of FC

Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2024 Gendou | Terms of Use | Page loaded in 0.0022 seconds at 2024-12-30 11:54:09