EN  RU

Stop Spam  Home >> Why guestbooks, blogs, wiki are spammed and how to prevent spam.

The main task of a spammer is to post links that lead to the spammer's website on websites having high link popularity. In order to improve positions in major search engines such as Google and Yahoo, spammers try to increase the Page Rank of their own sites using huge quantities of incoming links.

Major search engines, in their turn, do their best to stop this evil with the help of advanced filtering algorithms that disclose spammers’ tricks. However, the problem isn't resolved yet and your website can easily become a target for spam attacks.

As a rule, spammers use special programs - bots-that automatically look for vulnerable sites and spam them with hundreds of links. There are several ways to prevent spam attacks of the kind. Here is one of them. First of all, we must protect our site from spam-bots to guarantee that it is real people that leave messages and comments. Second, we use redirect so that search engines don't take spammers’ links into account.

I recommend using Turing test for protection against spam-bots. You need it to install a script that will generate random numbers and show them as images. After this users (site visitors) will enter this number in a special field for comparison. The thing is that bots can not read the text on the images.

Script Auditor v.1.0

Download Auditor v.1.0 (zip archive)

Working sample

Installation

If your site’s program engine is written in php you can easily integrate this script in the form for comments. If your engine is other than php you can use this script as "stand along".

  1. Upload files audit.php and button.php on your server and change chmod to 755.
  2. Open file with form (file where visitor leave comments) and put two rows:
    
    This code for image generation:
    
    <img width=120 height=30 src="button.php" border="1">
    
    This field for input:
     
    <input MAXLENGTH=5 SIZE=5 name="userdigit" type="text" value="">
    
    
  3. In action script you can use following code:
    
     include "audit.php";
    
     if (audit()) {
          // Visitor entered correct number
     } else {
          // Wrong number
     }
    

The function audit() returns "true" if the number entered by the visitor coincides with the number on the image, and returns “false” in other cases.

Your site can stop any spammer's bots now. The only thing left to do is the redirect. This operation makes spammers’ links useless for search engines, which makes them leave your site at rest. I recommend organizing the function via Google. To carry out this operation you need to change links in comment area like so:

http://www.google.com/url?sa=D&q=URL 
News:
Google recommend to use the special tag (rel="nofollow")

When Google sees the attribute (rel="nofollow") on hyperlinks, those links won't get any credit when we rank websites in our search results.

Visit my <a href="http://www.example.com/">discount pharmaceuticals</a> site.
That comment would be transformed to
Visit my <a href="http://www.example.com/" rel="nofollow">discount pharmaceuticals</a> site.

Sample:

Old link:
<a href="http://www.msn.com">MSN</a>

New link:
<a href="http://www.google.com/url?sa=D&q=http://www.msn.com">MSN</a>
At last your website is protected from spammers’ attacks. Good Luck!

Comments:



Name: webmaster mike
Email: asearchonline.seo@gmail.com
Location: gurgaon
Date: Monday 09th of April 2007 11:19:13 PM
Comments:
There are many different ways of writing content for a site and it is also one of the most significant criteria for visitor information. http://www.asearchonline.com/content.htm



Name: webmaster mike
Email: asearchonline.seo@gmail.com
Location: gurgaon
Date: Monday 09th of April 2007 11:18:10 PM
Comments:
There are many different ways of writing content for a site and it is also one of the most significant criteria for visitor information.



Name:
Email:
Location:
Date: Wednesday 28th of March 2007 09:13:26 AM
Comments:



Name: Bernard
Email: bernard.simon@yahoo.com
Location: Paris
Date: Saturday 17th of March 2007 04:04:00 PM
Comments:
I use Cryptograph (www.cryptographp.com) on my web site, I think it\'s the best solution Bernard



Name:
Email:
Location:
Date: Thursday 15th of March 2007 08:36:31 AM
Comments:



Name: Tom
Email: Test@test.com
Location: Home
Date: Thursday 08th of March 2007 01:33:31 PM
Comments:
This is a test.



Name: juan
Email: propagation7@yahoo.com.ar
Location: Salta, Argentina
Date: Monday 05th of March 2007 04:08:26 AM
Comments:
Thank you very much! It works perfectly. Warm regards from Argentina.



Name: Generic Viagra
Email: abc@abc.com
Location:
Date: Saturday 24th of February 2007 03:35:44 AM
Comments:
http://www.rajshri.com/musicvideos/nowplaying.asp?band=low&fileID=musicvideosRomantic147



Name: dating
Email: abc@abc.com
Location:
Date: Saturday 24th of February 2007 02:53:11 AM
Comments:
I hope you will like my site. NASRULLAHAMARDANI3 http://www.penis-enlargement-bigger.com http://www.sexylingeries.net <a href=\"http://www.penis-enlargement-bigger.com>Penis Enlargement</a>



Name: Robert Alice
Email: ucvhosting@gmail.com
Location: delhi
Date: Thursday 22nd of February 2007 09:26:03 AM
Comments:
UCV Host is the Industry Defining Value for money hosting. Cheap Windows Hosting, reseller hosting,dedicated server hosting, windows web hosting, linux web hosting, cheap linux hosting and more



Name: lazer epilasyon diyet zayiflama kilo verme
Email: webmaster@draligus.com
Location: http://www.draligus.com
Date: Monday 19th of February 2007 10:32:17 AM
Comments:
have a good luck http://www.draligus.com



Name:
Email:
Location:
Date: Tuesday 13th of February 2007 11:44:33 PM
Comments:



Name: webmaster mike
Email: shilpa@asearchonline.com
Location: delhi
Date: Monday 12th of February 2007 10:17:42 PM
Comments:
Dentalschemes.com offers you to choose best dental plans from our comprehensive package of discount dental plans. We ensure to provide you full dental care with dental insurance plans, which are designed for all age groups. You will also get dental advice from our dentists. Our dental plans will help you to save your money as well as meet your dental care needs. Join our dental plan and get a healthy smile.



Name: Jos
Email:
Location: Belgium
Date: Thursday 08th of February 2007 01:26:50 PM
Comments:
What is meant by \"3. in action script you can use following code?\" I can install the image code and bar but i can\'t get the check done, so i\'m stuck at point 3 Thanks



Name: Jos
Email:
Location: Belgium
Date: Thursday 08th of February 2007 01:26:22 PM
Comments:
What is meant by \"3. in action script you can use following code?\" I can install the image code and bar but i can\'t get the check done, so i\'m stuck at point 3 Thanks



Name: Dogus
Email:
Location: Turkey
Date: Monday 05th of February 2007 05:51:45 AM
Comments:
Thanks for this wonderful script, I was looking for something like this for a couple of days, and your script is just excellent and incredible simple Good Luck !



Name: toto
Email: toto@titi.com
Location: test
Date: Sunday 04th of February 2007 12:11:41 PM
Comments:
testhttp://php.webmaster-kit.com/smiles/confused-c.gif http://php.webmaster-kit.com/smiles/confused-c.gif



Name: Dennis
Email: dennis@dennisonline.net
Location: dag
Date: Monday 29th of January 2007 04:58:10 AM
Comments:
asdfsdsfd



Name: Cy
Email: info@caveman.nl
Location: Netherlands
Date: Friday 26th of January 2007 02:48:39 PM
Comments:
Hello, Letters/figures makes the captcha much stronger e.g. change button.php to $codes = \"abcdefghijklmnpqrstuvwxyz123456789\"; for ($i = 0; $i < 5; $i++) { $x = rand(0,33); $cnum[$i] = $codes[$x]; } Regards Cy



Name: asdfasdf
Email: none
Location: dsafasdf
Date: Thursday 25th of January 2007 12:16:49 AM
Comments:
asdfasdf



Name:
Email:
Location:
Date: Wednesday 24th of January 2007 08:12:54 PM
Comments:



Name: iaconet
Email: iaconet@iaco.com
Location:
Date: Monday 15th of January 2007 01:03:41 PM
Comments:
http://www.iaconet.com



Name: Georgia
Email: geo2@pathfinder.gr
Location: Athens
Date: Thursday 11th of January 2007 07:55:08 AM
Comments:



Name: ivy
Email:
Location:
Date: Tuesday 02nd of January 2007 10:13:35 AM
Comments:
è bello ma non riesco a faalro funzionare ufff



Name: Loffe
Email: erik@eloff.se
Location: Sweden
Date: Thursday 28th of December 2006 02:01:25 AM
Comments:
This script works brilliant. i could implement it on my website eloff.se in less than 10 min. Amazing Thank you //Loffe



Name: Johan_et_Pirlouit
Email: pinlde@hotmail.com
Location: France
Date: Wednesday 20th of December 2006 12:51:11 PM
Comments:
One thing is missing in the source files (v1.0) : the name of your web site in the PHP comments ..



Name: Manuel Avelar
Email: manuel@pixelcreart.net
Location: Honduras
Date: Wednesday 20th of December 2006 08:03:28 AM
Comments:
Hello, Thanks for that great tool, you can see work in www.elaguilanews.com, in the article section, comment form. Thank again Blessing



Name:
Email:
Location:
Date: Monday 18th of December 2006 09:35:43 PM
Comments:



Name: Carmen
Email:
Location:
Date: Sunday 17th of December 2006 10:03:19 PM
Comments:
is this for real



Name: Al
Email: site1@SITELEADER.COM
Location: http://www.siteleader.com
Date: Saturday 16th of December 2006 07:21:01 PM
Comments:
Great script! <A HREF=http://www.siteleader.com> Siteleader.com </A>



Name: Test 3
Email: test@hotmail.com
Location:
Date: Friday 15th of December 2006 03:41:20 PM
Comments:
this is a test



Name: Test 2
Email: test@hotmail.com
Location:
Date: Tuesday 12th of December 2006 08:06:57 AM
Comments:
this is a test



Name: Job Othoniel
Email: job@ifishmexico.com
Location: mexico
Date: Saturday 09th of December 2006 05:34:29 PM
Comments:
<A href=http://www.ifishmexico.com>Mazatlan Fishing and Lake el Salto bass fishing</A>



Name: Job Othoniel
Email: job@ifishmexico.com
Location: mexico
Date: Saturday 09th of December 2006 05:33:51 PM
Comments:
<A href=http://www.ifishmexico.com>Mazatlan Fishing and Lake el Salto bass fishing</A>



Name:
Email:
Location:
Date: Wednesday 06th of December 2006 05:50:10 AM
Comments:



Name: prova
Email: epprova@oja.ce
Location: dd
Date: Friday 01st of December 2006 07:25:46 PM
Comments:
sad



Name: Attraction Web Design
Email: ratx@juno.com
Location: Here
Date: Tuesday 28th of November 2006 12:00:03 PM
Comments:
good show



Name: test
Email:
Location:
Date: Sunday 19th of November 2006 11:09:27 AM
Comments:
test



Name: test
Email: test@Test.com
Location: test
Date: Sunday 19th of November 2006 10:42:04 AM
Comments:
test



Name: aa
Email:
Location:
Date: Saturday 18th of November 2006 11:11:02 AM
Comments:
dd



Name: Hato
Email:
Location:
Date: Thursday 16th of November 2006 02:09:46 PM
Comments:
Nice!



Name:
Email:
Location:
Date: Monday 13th of November 2006 08:05:37 AM
Comments:
aaa



Name: fico
Email: f.f.@f.flolf.pf
Location: Roma
Date: Sunday 05th of November 2006 08:56:00 AM
Comments:
Very nice! Where I can download it?



Name:
Email:
Location:
Date: Sunday 05th of November 2006 08:54:57 AM
Comments:



Name:
Email:
Location:
Date: Sunday 05th of November 2006 06:34:22 AM
Comments:



Name: gizmonet
Email:
Location: Hungary
Date: Thursday 02nd of November 2006 01:06:09 AM
Comments:
Thank you very much, this script! This a very very useful thing! Thank You, again! Gizmonet



Name: Kelsett
Email: boubaboum@boubi.com
Location: ...
Date: Tuesday 31st of October 2006 03:07:53 AM
Comments:
Really good



Name: carlos
Email: carlo@cccccc
Location: wwww
Date: Monday 30th of October 2006 05:30:16 AM
Comments:
wwww



Name: Joe
Email: onedodd@czx.net
Location: none
Date: Saturday 28th of October 2006 08:00:38 PM
Comments:
<A href=http://www.fintalk.com>Fishing, Fishing, Fishing</A>



Name: Joe
Email: onedodd@czx.net
Location: none
Date: Saturday 28th of October 2006 08:00:00 PM
Comments:
<A href=\"http://www.fintalk.com\">Fishing, Fishing, Fishing</A>



Name: aaa
Email: aaaa@aaa.com
Location: aa
Date: Thursday 26th of October 2006 01:10:46 AM
Comments:
aaaa



Name: test
Email: poconvoy@sanook.com
Location: test
Date: Thursday 26th of October 2006 12:14:34 AM
Comments:
test



Name: test mail
Email: poconvoy@gmail.com
Location: test
Date: Thursday 26th of October 2006 12:05:02 AM
Comments:
test



Name: markus
Email:
Location: germany
Date: Tuesday 24th of October 2006 02:22:37 PM
Comments:
great job! thanks a lot!



Name: Doug
Email:
Location:
Date: Friday 20th of October 2006 01:49:07 PM
Comments:
Moving the confirmation page to a separate php file seemed to fix this!



Name: Doug
Email:
Location:
Date: Friday 20th of October 2006 12:57:28 PM
Comments:
Thanks for the script! Very helpful. The script works, the only problem i\'m having is some error text genereted on the success confirmation page: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by ... Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent ... I\'ve not used sessions before so not sure what\'s up. Is this related to the fact that my form page and confirmation page are both in the same guestbook.php file?



Name: dj
Email: fool@follz.net
Location: Hell
Date: Sunday 15th of October 2006 07:11:53 AM
Comments:
Woopdede have a bowl for meeeeeeeeeeeeeeeeeeee



Name:
Email:
Location:
Date: Wednesday 27th of September 2006 12:52:08 AM
Comments:



Name:
Email:
Location:
Date: Wednesday 27th of September 2006 12:49:32 AM
Comments:



Name: Ric
Email: ricinoc@gmail.com
Location: OC, MD, USA
Date: Friday 22nd of September 2006 06:11:45 PM
Comments:
Need this for php bulletin for new registrants, thus already accepted members don\'t have to enter digits each time...



Name:
Email:
Location:
Date: Friday 22nd of September 2006 10:06:02 AM
Comments:



Name:
Email:
Location:
Date: Friday 22nd of September 2006 09:59:35 AM
Comments:



Name: buzz
Email:
Location:
Date: Friday 22nd of September 2006 07:23:55 AM
Comments:



Name: Roger
Email: none
Location: Amstenrade, NL
Date: Wednesday 20th of September 2006 07:01:33 AM
Comments:
ram cool



Name: c
Email:
Location:
Date: Saturday 09th of September 2006 03:20:17 PM
Comments:
free



Name:
Email:
Location:
Date: Friday 08th of September 2006 12:56:04 AM
Comments:
I\'ll try it.



Name: Meh
Email:
Location:
Date: Thursday 31st of August 2006 11:49:47 AM
Comments:
Cool.



Name:
Email:
Location:
Date: Wednesday 30th of August 2006 05:56:20 PM
Comments:



Name: zutas
Email: none
Location: kalabybiskes
Date: Sunday 27th of August 2006 07:56:48 PM
Comments:
sssss



Name: zzzzzzzzzzzz
Email: none
Location: zzzzzzzzzzzz
Date: Sunday 27th of August 2006 05:43:03 PM
Comments:
zzzzzzzzz



Name: tester
Email:
Location:
Date: Friday 25th of August 2006 04:19:13 PM
Comments:
it works after messing around a bit with the session start and destroy, also put the audit.php in my form page, its too little to use an own page (for me) thanks so much i have been having use problems with having captchas working, they either always said wrong or always said right :s so still not spam free. i hope it\'ll work but i think it\'s working fine. not perfect for blind people ofcourse but well spammers are a much bigger problem right now :s chance of blind visitors is so small :s



Name: Steve
Email:
Location:
Date: Monday 21st of August 2006 05:54:33 PM
Comments:
i use also www.cryptographp.com



Name:
Email:
Location:
Date: Monday 21st of August 2006 10:55:33 AM
Comments:



Name: Justin
Email: none
Location: US of gay
Date: Thursday 17th of August 2006 09:54:48 AM
Comments:
laff



Name: Søren
Email:
Location: Denmark
Date: Monday 14th of August 2006 09:03:48 AM
Comments:
Test



Name: Prova
Email:
Location:
Date: Sunday 13th of August 2006 01:38:26 PM
Comments:
Prova



Name: Oliver
Email: huin33oliver1dot@yahoo.com
Location: Barton
Date: Sunday 06th of August 2006 03:20:27 PM
Comments:
Free membership for live video chat. You don\'t even have to have your own web cam. Thousands of users online all time, many camgirls and NUDE models. LIVE VIDEO. You can watch for free. Allways someone getting naked here: <a href=\"http://webcam-chat.pisem.net\">webcam chat</a> http://webcam-chat.pisem.net



Name: MY Name
Email:
Location: here
Date: Friday 04th of August 2006 11:13:46 AM
Comments:
test



Name: sy
Email:
Location:
Date: Friday 04th of August 2006 11:11:40 AM
Comments:
t



Name: Vitaliy
Email:
Location:
Date: Monday 31st of July 2006 05:51:35 PM
Comments:
IT doesn\'t work in Firefox



Name: k
Email:
Location: nz
Date: Sunday 30th of July 2006 03:42:18 PM
Comments:
i hate spam



Name: simo
Email:
Location:
Date: Thursday 27th of July 2006 03:33:00 AM
Comments:
doesn\'t works with me



Name:
Email:
Location:
Date: Saturday 22nd of July 2006 10:36:30 PM
Comments:



Name: Lucian Tipordei
Email: lucian.tipordei@gmail.com
Location: Malaga, Spain
Date: Monday 17th of July 2006 05:25:58 PM
Comments:
Thanx for sharing your work with us, I don\'t like spammers, they will all end up in jail!



Name: Lucian Tipordei
Email: lucian.tipordei@gmail.com
Location: Malaga
Date: Monday 17th of July 2006 05:24:09 PM
Comments:
Loved the script! Thanx for sharing your work with us! I don\'t like spammers, they will all end up in jail!



Name:
Email:
Location:
Date: Monday 17th of July 2006 11:45:32 AM
Comments:
;kl



Name: Raghu
Email: mk.raghavram@gmail.com
Location: India
Date: Sunday 16th of July 2006 02:45:25 PM
Comments:
The guesbook get updated even if i dont or enter worng digits, similar to wot Francois and Mikael. Any solution??? the link is : http://s88455697.onlinehome.us/noor/guestbook_1/ i would appreciate if you/someone could help me through this.



Name: Abraham & Sarah
Email:
Location: Netherlands
Date: Saturday 08th of July 2006 07:53:53 AM
Comments:
Perfect script, Thank you ! http://abrahamsara.nl/



Name: Abraham & Sarah
Email:
Location: Netherlands
Date: Saturday 08th of July 2006 07:52:04 AM
Comments:
Perfect sript !!!!! Thank you http://www.abrahamsara.com



Name: x
Email:
Location:
Date: Friday 07th of July 2006 02:40:41 PM
Comments:
x



Name: a
Email: a@j.com
Location: a
Date: Thursday 06th of July 2006 06:59:46 AM
Comments:
just a test



Name: test
Email:
Location:
Date: Tuesday 04th of July 2006 11:51:34 AM
Comments:
test



Name: test
Email:
Location: test
Date: Tuesday 04th of July 2006 11:50:52 AM
Comments:



Name: Fireworks Zone
Email: fireworkszone@free.fr
Location: France
Date: Saturday 01st of July 2006 12:31:06 AM
Comments:
testing



Name: Test User
Email:
Location:
Date: Tuesday 27th of June 2006 05:52:04 AM
Comments:
Testing



Name: JF
Email:
Location:
Date: Tuesday 20th of June 2006 08:32:13 PM
Comments:
This is an example of a working guestbook!



Name: a
Email: a@a.com
Location: asdf
Date: Tuesday 20th of June 2006 04:24:41 PM
Comments:
asdf



Name:
Email:
Location:
Date: Tuesday 20th of June 2006 09:43:17 AM
Comments:



Name: dgdgh
Email: dfghdshgs@dsgdsg.com
Location: sdfsadf
Date: Wednesday 14th of June 2006 01:13:28 AM
Comments:
sdfassadfasfsd



Name: Andreas Schamanek
Email:
Location: http://andreas.schamanek.net
Date: Sunday 11th of June 2006 03:51:31 AM
Comments:
In http://www.fam.tuwien.ac.at/~schamane/sysadmin/gallery1captcha.php you may find a quick and somewhat technical description of how to get Auditor working in (Menalto\'s) PHP Gallery v1.5.x ( http://gallery.menalto.com ).



Name:
Email:
Location:
Date: Saturday 10th of June 2006 03:01:55 AM
Comments:



Name: M. Achine
Email:
Location:
Date: Saturday 10th of June 2006 03:01:35 AM
Comments:
Tested by a Machine



Name: lba
Email:
Location: Belgium
Date: Thursday 08th of June 2006 01:07:19 PM
Comments:
Sometimes the session variable was not set correctly after multiple catcha\'s were generated before the audit function was called. It seems the session variable is not always cleanly overwritten. Since we don\'t rely on php sessions for anything else on our forum, we could solve this by adding session_start() and immediately session_destroy() at the beginning of button.php. Just a suggestion if you run into similar trouble... Cheers!



Name: brilsmurf
Email: brillie@example.com
Location: Europe
Date: Thursday 08th of June 2006 05:38:04 AM
Comments:
Testing testing : )



Name: Anon
Email: anon@anon.com
Location:
Date: Wednesday 07th of June 2006 05:28:39 PM
Comments:
test



Name:
Email:
Location:
Date: Wednesday 07th of June 2006 01:18:00 AM
Comments:



Name: Igor
Email: poterr@msn.com
Location:
Date: Tuesday 06th of June 2006 11:27:12 PM
Comments:
Very good your site [URL=http://freeringtone.cmm3w.info]free[/URL] | [URL=http://findbanda.cmm3w.info]findbanda[/URL] | [URL=http://autoinsurance.cmm3w.info]autoin[/URL]



Name: io
Email:
Location:
Date: Saturday 03rd of June 2006 10:13:10 AM
Comments:
test



Name: ivy
Email:
Location:
Date: Saturday 03rd of June 2006 09:31:22 AM
Comments:
testing



Name: asdasdasdasd
Email: none
Location: ASasA
Date: Friday 02nd of June 2006 06:16:47 AM
Comments:
ASasASas



Name: df
Email: erumeshchandra@lycos.com
Location: jlk
Date: Thursday 01st of June 2006 05:10:44 AM
Comments:
lml



Name: Jason
Email: jason2646@yahoo.com
Location: Pittsburgh
Date: Wednesday 31st of May 2006 11:17:02 PM
Comments:
I am trying to use this script on my high school basketball teams guestbook cause we are getting spammed left and right. The guestbook is written in ASP. When I put this script in the image comes up and everything, but there is no real verification. Whatever you enter works. Any ideas? I am hopefully just missing something simple since I am a rook at this.



Name: test
Email: test@test.com
Location: tetrs
Date: Tuesday 30th of May 2006 05:38:24 AM
Comments:
sss



Name: bruno
Email:
Location: Paris
Date: Sunday 28th of May 2006 08:06:07 PM
Comments:
Here a very wonderfull script for pictures captcha: http://www.cryptographp.com Bruno



Name: testers
Email: test@test.com
Location: ny
Date: Thursday 25th of May 2006 09:27:57 AM
Comments:
hello



Name: fasasf
Email:
Location:
Date: Thursday 25th of May 2006 09:26:37 AM
Comments:
sfasfasdf



Name: tester
Email: tester@test.com
Location: test
Date: Thursday 18th of May 2006 08:20:27 PM
Comments:
test



Name:
Email:
Location: UK
Date: Thursday 18th of May 2006 01:59:26 AM
Comments:
Ah.. new comments go in at the top of the list As mentioned before, clicking the \"go back\" link after posting gives the \"you entered the wrong number\" message, even if the post was successful.



Name: Anthony Cartmell
Email:
Location: UK
Date: Thursday 18th of May 2006 01:56:20 AM
Comments:
Looks like you need some stripslashes in here, or, even better \'magic_quotes_gpc off\' in your php.ini.



Name: Anthony Cartmell
Email:
Location: UK
Date: Thursday 18th of May 2006 01:55:47 AM
Comments:
Looks like you need some stripslashes in here, or, even better \'magic_quotes_gpc off\' in your php.ini.



Name: Anthony Cartmell
Email:
Location: UK
Date: Thursday 18th of May 2006 01:55:16 AM
Comments:
Looks like you need some stripslashes in here, or, even better \'magic_quotes_gpc off\' in your php.ini.



Name: Anthony Cartmell
Email:
Location: UK
Date: Thursday 18th of May 2006 01:54:45 AM
Comments:
Looks like you need some stripslashes in here, or, even better \'magic_quotes_gpc off\' in your php.ini.



Name:
Email:
Location:
Date: Thursday 18th of May 2006 01:03:59 AM
Comments:



Name: ROB
Email:
Location: ROBOLAND
Date: Thursday 18th of May 2006 12:49:03 AM
Comments:
HI! i\'M A ROBOT!



Name: simon
Email: aks@yahoo.com
Location: usa
Date: Wednesday 17th of May 2006 12:05:49 AM
Comments:
just test



Name: simon
Email: aks@yahoom
Location:
Date: Wednesday 17th of May 2006 12:04:04 AM
Comments:
just



Name: Just Me
Email:
Location: Colorado
Date: Tuesday 16th of May 2006 10:21:49 PM
Comments:
test



Name: test
Email: test@test.om
Location: test
Date: Sunday 14th of May 2006 10:49:55 AM
Comments:
test



Name: A. Noniempje
Email: anoniempje@mens-agitat-molem.nu
Location:
Date: Friday 12th of May 2006 01:15:52 PM
Comments:



Name: mark
Email: none
Location: indiana
Date: Tuesday 09th of May 2006 12:58:48 PM
Comments:
just a test by a human



Name:
Email:
Location:
Date: Thursday 04th of May 2006 07:01:33 AM
Comments:



Name: bec
Email:
Location: scotland
Date: Wednesday 03rd of May 2006 08:38:17 AM
Comments:
Thanks!



Name:
Email:
Location:
Date: Thursday 27th of April 2006 08:49:18 AM
Comments:



Name: abc
Email: abc@yahoo.com
Location: Jaipur
Date: Wednesday 26th of April 2006 02:40:42 AM
Comments:
Test mail



Name:
Email:
Location:
Date: Monday 24th of April 2006 10:09:28 AM
Comments:
test



Name: peter
Email: sibas@hotmail.com
Location: earth
Date: Monday 24th of April 2006 03:15:52 AM
Comments:
man nice script



Name: Mikael
Email:
Location: Sweden
Date: Saturday 22nd of April 2006 08:25:26 AM
Comments:
I cant get this to work. I\'ve included the lines exactly as you\'ve written. The image and input field shows up even if I don\'t enter any numbers it adds the guestbook entry. See http://www.penexpers.com/guestbook.php . I use form action=\"guestbook.php\", is that possible with this script?



Name:
Email:
Location: New Zealand
Date: Wednesday 19th of April 2006 03:04:57 PM
Comments:
Whoo! thanks for the great script!



Name: ripodb.tk
Email: admin@ripodb.tk
Location:
Date: Monday 03rd of April 2006 07:21:06 PM
Comments:
thanks a lot, our guestbook was getting flooded it was terrible.. now I just have the job of going though 10,000 messagees and removing the spam



Name: Vipul
Email: jainvira@yahoo.com
Location: india
Date: Monday 03rd of April 2006 06:26:13 PM
Comments:
I have tried your script, very good and usefull. i changed the colours littel bit, made text dark and background little light.



Name: *Comp*
Email: me@privacy.net
Location: UK
Date: Monday 03rd of April 2006 08:27:27 AM
Comments:
Digits not too pretty. Like the ones at junkeater_dot_com, but the script not works so well with php pages...



Name: be
Email:
Location: dk
Date: Monday 03rd of April 2006 05:24:48 AM
Comments:
sdhgh



Name: nimda
Email:
Location:
Date: Monday 03rd of April 2006 02:09:05 AM
Comments:
hello



Name: Ales
Email:
Location: Czech Republic
Date: Sunday 02nd of April 2006 04:24:18 AM
Comments:
It doesnt work in Opera Browser!



Name:
Email:
Location:
Date: Saturday 01st of April 2006 11:02:36 PM
Comments:



Name: dd
Email:
Location:
Date: Saturday 01st of April 2006 10:45:13 PM
Comments:



Name: KyKy
Email: kyky@yahy.net
Location: http://php.webmaster-kit.com/
Date: Thursday 30th of March 2006 05:04:12 AM
Comments:
heyyyyyy



Name: Doe
Email:
Location:
Date: Monday 27th of March 2006 07:36:14 AM
Comments:
Test2



Name: John
Email:
Location:
Date: Monday 27th of March 2006 07:35:12 AM
Comments:
Test



Name:
Email:
Location:
Date: Thursday 23rd of March 2006 10:11:01 AM
Comments:



Name: ascascasc
Email: ascasc@asascasc.com
Location: uk
Date: Tuesday 21st of March 2006 09:28:57 AM
Comments:
ascfascascascasc



Name: Cinque Hicks
Email: cinque@influxhouse.com
Location: Atlanta, USA
Date: Monday 20th of March 2006 06:00:04 PM
Comments:
Hello, Thanks for providing this script! I\'d like to use it and I know a tiny, tiny bit about PHP, but I don\'t understand step 3. \"In action script you can use following code\" Where do I write this? In one of the downloaded files? Where does that code go? Thanks to anyone who can help! ch



Name: jhhj
Email: hjhj@eee.com
Location: jhhjjh
Date: Monday 20th of March 2006 03:11:05 PM
Comments:
hjhj



Name:
Email:
Location:
Date: Monday 20th of March 2006 12:35:29 AM
Comments:



Name: Tom Haynes
Email:
Location:
Date: Thursday 16th of March 2006 08:18:20 PM
Comments:
You can not tell fonts what size to be so you must use a custom font of the right size. Go to http://www.widgnet.com/gdf_fonts/fonts.html as an example and download the font you like. Unzip the file that is in it and ftp it to the same place that you put the button.php script. Don\'t forget that it is a binary file so upload it as one. Now modify the button.php file by adding $myfont = imageloadfont(\'anonymous.gdf\'); after the imagecolorallocate lines. Change $fnt in the line imagestring($image, $fnt, $x, $y, $cnum[$i] , $darkgray) to $myfont. Now you just need to tweek the image size and random numbers for placement of the text and you are all set. Here is my version of button.php using the anonymous.gdf file from the link mentioned above <?php $image = imagecreate(240, 60); $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $gray = imagecolorallocate($image, 0xC0, 0xC0, 0xC0); $darkgray = imagecolorallocate($image, 0x50, 0x50, 0x50); $myfont = imageloadfont(\'anonymous.gdf\'); srand((double)microtime()*1000000); for ($i = 0; $i < 50; $i++) { $x1 = rand(0,240); $y1 = rand(0,60); $x2 = rand(0,240); $y2 = rand(0,60); imageline($image, $x1, $y1, $x2, $y2 , $gray); } for ($i = 0; $i < 5; $i++) { $cnum[$i] = rand(0,9); } for ($i = 0; $i < 5; $i++) { $x = $x + rand(25 , 50); $y = rand(0 , 20); imagestring($image, $myfont, $x, $y, $cnum[$i] , $darkgray); } $digit = \"$cnum[0]$cnum[1]$cnum[2]$cnum[3]$cnum[4]\"; session_start(); $_SESSION[\'digit\'] = $digit; header(\'Content-type: image/png\'); imagepng($image); imagedestroy($image); ?>



Name: Tom Haynes
Email:
Location:
Date: Thursday 16th of March 2006 08:09:25 PM
Comments:
Sorry, my formatting got clobered. I hope you can figure it out



Name: Tom Haynes
Email:
Location:
Date: Thursday 16th of March 2006 08:07:24 PM
Comments:
for godaddy\'s advancedguestbook version 2.3.1 (and maybe others) copy the audit.php and button.php in to the same directory as the existing addentry.php file. Next, you will need to follow the instructions below to add some lines to four files /templates/form.php /lib/add.class.php /addentry.php /templates/preview_entry.php form.php is the html that makes up the \'add entry to guest book\' page the additions in this file add the random image and entrty field for your users. add.class.php contains the function that checks the form entries and other stuff. we are adding the audit validation checks there so the guestbook can gracefully return any errors. addentry.php is the entry point to the entry form functions. We are adding an include statement here so the audit functions work right. templates/preview_entry.php obviously is the entry preview page. We need to make sure that the input from the entry form flows through the preview page so it can be validated when submitted. NOTE: Don\'t add the ### START ADD HERE ### and ### END ADD HERE ### lines at the bottom of the /templates/form.php add... </td> <td bgcolor=\"$VARS[tb_color_1]\" valign=\"top\"><textarea name=\"gb_comment\" cols=\"41\" rows=\"11\" wrap=\"VIRTUAL\"></textarea><br> <input type=\"checkbox\" name=\"gb_private\" value=\"1\"> <font size=\"1\" face=\"$VARS[font_face]\">$LANG[FormPriv]</font> </td> </tr> ###### START ADD HERE ##### <tr bgcolor=\"$VARS[tb_color_1]\"> <td> <img width=120 height=30 src=\"button.php\" border=\"1\"> <font size=\"1\" face=\"$VARS[font_face]\">*</font> </td> <td> <font size=\"1\" face=\"$VARS[font_face]\"> Validation number: <img width=120 height=30 src=\"button.php\" border=\"1\">* </font> </td> </tr> ##### END ADD HERE ##### <tr bgcolor=\"$VARS[tb_color_1]\"> <td width=\"25%\"><div align=\"left\" class=\"font2\">$HTML_CODE<br>$SMILE_CODE<br>$AG_CODE</div></td> <td> <input type=\"submit\" name=\"gb_action\" value=\"$LANG[FormSubmit]\" class=\"input\" onclick=\"if(flag==1) return false;\"> <input type=\"submit\" name=\"gb_action\" value=\"$LANG[FormPreview]\" class=\"input\" onclick=\"if(flag==1) return false;\"> <input type=\"reset\" value=\"$LANG[FormReset]\" class=\"input\"> </td> </tr> </table> </form> ------------------------------------------------------------------------------- in the lib/add.class.php file add... function check_entry($type=\'\') { global $GB_UPLOAD, $GB_TMP, $GB_PG; ### skip to near end of function ### if (!$this->db->CheckWordLength($this->comment)) { return $this->db->gb_error($this->db->LANG[\"ErrorPost10\"]); } ##### START ADD ##### if ($type != \"preview\" { if (!audit()) { return $this->db->gb_error($this->db->LANG[\"ErrorPost4\"]); } } ##### END ADD ##### return 1; } -------------------------------------------------------------------------------- in the top of the /addentry.php file add... include_once $include_path.\"/lib/vars.class.php\"; include_once $include_path.\"/lib/add.class.php\"; ##### START ADD ##### include_once $include_path.\"/audit.php\"; ##### END ADD ##### $gb_post = new addentry($include_path); -------------------------------------------------------------------------------- in the bottom of the templates/preview_entry.php file add... </tr> <tr bgcolor=\"$VARS[tb_color_1]\"> <td width=\"32%\">&nbsp;</td> <td> ##### START ADD ##### <input type=\"hidden\" name=\"userdigit\" value=\"$_POST[userdigit]\"> ##### END ADD ##### <input type=\"button\" name=\"back\" value=\"$LANG[FormBack]\" class=\"input\" onclick=\"javascript:history.back()\"> <input type=\"submit\" name=\"gb_action\" value=\"$LANG[FormSubmit]\" class=\"input\" onclick=\"if(flag==1) return false;\"> $HIDDEN </td> </tr> </table> ------------------------------------------------------------------------------ I know this allows the auditing functions to work but I do not know if it stops bot entries on the godaddy guestbook (it should). However, I offer no support for this modification. Good Luck Tom Haynes



Name:
Email:
Location:
Date: Tuesday 14th of March 2006 04:50:18 PM
Comments:



Name: ar
Email:
Location:
Date: Tuesday 14th of March 2006 02:24:22 PM
Comments:



Name:
Email:
Location:
Date: Tuesday 14th of March 2006 02:23:50 PM
Comments:



Name:
Email:
Location:
Date: Tuesday 14th of March 2006 02:22:34 PM
Comments:



Name: Cozmo Trouble
Email:
Location: On the Couch
Date: Sunday 12th of March 2006 02:24:50 PM
Comments:
Thanx for the code. I finaly got those freakin spammers from flodding our guest book app



Name:
Email:
Location:
Date: Sunday 12th of March 2006 02:23:09 AM
Comments:



Name: Aron Stansvik
Email: elvstone@gmail.com
Location: Sweden
Date: Saturday 11th of March 2006 04:19:33 AM
Comments:
I tried this script to help my friends\' bands guestbook, which had been bombarded by spam. I installed it early yesterday, but they\'re still getting spammed. Anyone know how they may be circumventing it? You can see their guestbook at http://auto-auto.se/?p=guestbook I\'d really like the help them out with this :/



Name: Luis Gallardo
Email:
Location:
Date: Friday 03rd of March 2006 04:19:00 AM
Comments:
thx b)



Name: stry
Email: none
Location: xghxfgh
Date: Thursday 23rd of February 2006 09:51:04 AM
Comments:
xxfghxfghxfg



Name:
Email:
Location:
Date: Friday 17th of February 2006 10:23:55 PM
Comments:



Name:
Email:
Location:
Date: Friday 17th of February 2006 09:29:13 PM
Comments:



Name:
Email:
Location:
Date: Friday 17th of February 2006 08:45:13 PM
Comments:



Name:
Email:
Location:
Date: Friday 17th of February 2006 08:37:59 PM
Comments:



Name:
Email:
Location:
Date: Friday 17th of February 2006 11:23:03 AM
Comments:



Name: Bartman
Email:
Location:
Date: Thursday 16th of February 2006 08:29:23 AM
Comments:
I\'ll give it a go...



Name: a
Email: a@a.a
Location: a
Date: Monday 13th of February 2006 06:12:59 PM
Comments:
a



Name: Jesse
Email: not@available.com
Location: US
Date: Saturday 11th of February 2006 06:12:21 PM
Comments:
Thanks!!!



Name:
Email:
Location:
Date: Thursday 02nd of February 2006 05:38:14 AM
Comments:



Name:
Email:
Location:
Date: Monday 16th of January 2006 07:56:58 PM
Comments:



Name: Richar
Email: razlpy@gmail.com
Location: Paraguay
Date: Thursday 05th of January 2006 06:40:59 AM
Comments:



Name:
Email:
Location:
Date: Saturday 10th of December 2005 07:48:42 PM
Comments:



Name:
Email:
Location:
Date: Thursday 01st of December 2005 02:03:18 PM
Comments:



Name: Francois
Email: francois@worfoual.com
Location: amsterdam
Date: Wednesday 23rd of November 2005 02:20:46 AM
Comments:
When I fill a wrong number it\'s still sending the form. Wat am I doing wrong.



Name: Bob Dole
Email: bob@dole.net
Location:
Date: Friday 18th of November 2005 03:44:48 PM
Comments:
Bob Dole doesn\'t need this!