Nobot Guestbook

Stop Guestbook Spam Stop Guestbook Spam
Home Install Download Tabish's Page
A typical day in a Nobot guestbook log
205.234.132.47 - [02/14/06 00:44:06 ] - This is spam!
85.192.4.78 - [02/14/06 01:28:27 ] - This is spam!
211.155.30.122 - [02/14/06 03:39:04 ] - This is spam!
217.9.147.70 - [02/14/06 04:32:38 ] - This is spam!
202.56.253.184 - [02/14/06 04:40:46 ] - This is spam!
195.175.37.8 - [02/14/06 05:01:13 ] - This is spam!
80.58.33.170 - [02/14/06 05:07:42 ] - This is spam!
211.230.27.133 - [02/14/06 05:47:39 ] - This is spam!
203.115.1.134 - [02/14/06 05:50:16 ] - This is spam!
58.78.222.84 - [02/14/06 06:38:00 ] - This is spam!
218.152.150.243 - [02/14/06 09:17:38 ] - This is spam!
217.9.147.70 - [02/14/06 09:20:34 ] - This is spam!
61.111.103.66 - [02/14/06 10:28:51 ] - This is spam!
63.246.146.80 - [02/14/06 11:18:36 ] - This is spam!
165.228.130.12 - [02/14/06 11:32:03 ] - This is spam!
195.175.37.8 - [02/14/06 11:42:21 ] - This is spam!
222.117.44.40 - [02/14/06 12:13:33 ] - This is spam!
211.214.165.115 - [02/14/06 12:53:02 ] - This is spam!
205.234.132.47 - [02/14/06 13:04:37 ] - This is spam!
204.246.129.196 - [02/14/06 13:15:40 ] - ERR: No Comments
196.40.31.138 - [02/14/06 15:06:00 ] - This is spam!
211.172.136.151 - [02/14/06 15:25:45 ] - This is spam!
220.123.68.217 - [02/14/06 15:28:00 ] - This is spam!
165.228.128.11 - [02/14/06 15:32:10 ] - This is spam!
193.194.84.198 - [02/14/06 17:47:24 ] - This is spam!
205.234.132.47 - [02/14/06 17:49:14 ] - This is spam!
202.141.141.10 - [02/14/06 18:26:30 ] Guestbook entry
85.192.4.78 - [02/14/06 18:26:59 ] - This is spam!
67.102.72.146 - [02/14/06 18:29:44 ] - This is spam!
140.198.48.37 - [02/14/06 18:36:18 ] - This is spam!
193.195.76.216 - [02/14/06 18:36:21 ] - This is spam!
62.168.109.160 - [02/14/06 19:15:42 ] - This is spam!
140.198.48.37 - [02/14/06 19:25:55 ] - This is spam!
81.177.10.145 - [02/14/06 19:26:53 ] - This is spam!
81.177.10.145 - [02/14/06 19:26:53 ] - ERR: No Comments
81.177.10.145 - [02/14/06 19:26:53 ] - ERR: No Comments
81.31.160.4 - [02/14/06 19:56:09 ] - This is spam!
70.135.76.65 - [02/14/06 20:09:20 ] - This is spam!
218.149.7.228 - [02/14/06 20:31:56 ] - This is spam!
196.40.31.138 - [02/14/06 20:57:10 ] - This is spam!
196.40.31.138 - [02/14/06 20:57:10 ] - This is spam!
82.175.84.186 - [02/14/06 22:26:16 ] - This is spam!
61.189.240.196 - [02/14/06 22:42:37 ] - This is spam!
196.40.31.138 - [02/14/06 23:57:39 ] - This is spam!
Almost everybody running an automatic guestbook is aware of SpamBots frequently addding bogus entries, pointing to their site. There doesn't seem to be a simple fool proof way of beating the spammers. I also faced a similar problem, and decided to find a way out - so here it is - Nobot Guestbook.

Nobot Guestbook is a modification of Matt's guestbook to include verification of a human user by asking her to read an image based code number. At present the method seems to be very robust. Those using Matt's guestbook can retain their existing guestbook.html. The best part is, Nobot Guestbook uses nothing other than perl scripts.


See it in action: Flowers of India Stop Guestbook Spam

How does it work? Stop Guestbook Spam

Working is fairly simple. There is an additional file called code.txt, which contains a 4-5 digit code number. This file resides in the cgi-bin directory, so cannot be read from outside directly.

There is a perl script codeimage.pl which uses the script msgimg.pl, provided by Andrew Gregory, to generate an unclear image of the code number.

The addguest.html from Matt's guestbook has been modified such that it calls codeimage.pl to display an image of the code number. The user is asked to type the code and submit the guestbook form.

The perl guestbook program nobotgbook.pl (which is just a modified form of Matt's guestbook.pl) receives the submitted form data and compares the code number typed by the user with that already in code.txt file. If it doesn't match, the submission is discarded, assuming that it is a spambot (or a user as dumb as that, who can't read a number ;-) .

If nobotgbook.pl successfully updates the guestbook, it generates a new random code number, and writes it to code.txt.

That's all there is to it - enjoy! Stop Guestbook Spam


|\/|ail
Tabish Qureshi
This program is free software; you can distribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
Andrew Gregory's "Message Image" is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.
Stop Guestbook Spam
Stop Guestbook Spam
Stop Guestbook Spam
Stop Guestbook Spam