6750110c79aad

6750110c7b33d
1 Guest is here.
 

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

6750110c7b837
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 »
6750110c7b99b
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.
Hold the phone, they have dynamite!
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6750110c7e906