Bad Google Bot Bad!
cashvolume
Last night I implemented a bot trap that I coded up in PHP on one of my sites. Its just a little bit of code saved into a page thats linked off the index.php of my website. I used robots.txt to disallow access for bots that follow the rules and used empty anchor text for the link so that it would be invisible to human eyes. What the bot trap basically does is record any access to the file and logs the IP by sending an email and then automatically appends to the .htacces file a deny from that IP which effectively blocks any further access coming from that IP address. Be careful this works really well I actually ended up blocking my IP address from testing the system out and had to manually edit the .htaccess file via FTP to unblock myself. Read the rest of this entry »
Posted in tools, PHP |
No Comments »

