#!/usr/bin/perl ###################################################################### # # [Script]: eatme.pl # # [Version]: v0.10 - 05-07-2007 # # [Author]: Jerome Bruandet # # [Description]: spam bot trap # # [Requires]: apache + perl + mod_rewrite (or mod_security) # # [Installation]: see http://spamcleaner.org/fr/misc/eatme.html # ###################################################################### #======================= USER CONFIGURATION =========================# # alphabets letters used to create fake emails : @alphabet=('a','b','c','d','e','f','g','h','i','j','l','m', 'n','o','p','r','s','t','u','v'); # domain names extensions used for fake emails : @tld=('.net','.com','.org','.fr','.de','.eu'); # fake page extension. By default, '.htm'. # if you want to chane it, change also the the mod_rewrite rule # in your apache conf or .htaccess file : $extension= ".htm"; # Maximum number of characters to generate for the email name # domain name : $max_car=13; # Maximum number of fake emails to create and display on each # fake page. Do not put a value greater than 200 as some bots # could become suspicious it is a trap : $max_emails=150; # number of links to other fake pages to display per page : $max_links=8; # number of fake page to generate : after having sent $max_pages # to the bot, the script will stop creating new ones. This helps # to avoid endless loop. # value should be less than 100 : $max_pages=10; # 404 error message to diplay to your visitors if, by mistake, # on of them trigger the script : $message_404="Error: page not found"; #===================== END USER CONFIGURATION =======================# print "Content-type: text/html\n\n"; print qq~