6750aba53c2e0

6750aba53d4c9
1 Guest is here.
 

Topic: Bot Trap 1.1 (for website administrators) Read 1708 times  

6750aba53da40
I wrote a trap for spambots and misbehaving webcrawlers today. The idea being that you exclude a directory from being crawled via robots.txt.
Any webcrawler that still accesses it will have fun. Spambots even more so.

You can see the result here: https://www.systemshock.org/bottrap That page will take 20 seconds to load, be patient.
That page is being linked to at the top of every SBF page and a honeypot address is also added for good measure, as some harvesters may follow robots.txt after all. (Unlikely, but hey!)

Code: [Select]
//KOLYA's Bot Trap
$time = time();
$ip = $_SERVER['REMOTE_ADDR'];
$fullhost = gethostbyaddr($ip);
$host = preg_replace("/^[^.]+./", "@", $fullhost);
echo '<div style="display:none;"><a href="http://www.yourdomain.com/bottrap">Hello stupid bots!</a> <a href="mailto:abuse+', $time, $host, '">abuse+', $time, $host, '</a></div>';

Installation
1. Unzip the attachment and upload the "bottrap" folder to your website's root directory.
2. Exclude the "bottrap" folder from being searched by bots in your robots.txt file.
3. (Optional) Change the above code to reflect your own domain instead of "yourdomain.com", then add it to the top of your site.
« Last Edit: 10. July 2008, 23:53:45 by Kolya »
6750aba53db9e
Updated to version 1.1

Spambots now get the fabulous chance to report themselves to their own ISP's abuse address.
1 Guest is here.
I did not expect to see you here. A person like you shouldn't be here in this quote section.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6750aba53e8b7