Comment spam sucks, its as simple as here at Venture Skills blog we get hundreds of spam a day most are caught by Akismet but not all are. If your hosting your own blog or site then no doubt you have tried many combinations. One simple method of reducing spam is a CAPTCHA “Completely Automated Public Turing test to tell Computers and Humans Apart” These provide puzzles which are easy for a human to solve but are much more difficult for a machine.

Commonly CAPTCHA is a visual image where the user is asked to type the word they see (or hear) however some provide a logic puzzle such as “if I have 2 cats and 3 kettles how many animals do I have” or even show multiple images and ask the user to click on the picture of the cat.
Given that most comment spam is automated the use of a CAPTCHA should reduce spam and help make your blog or site a little happier, but they are annoying for users so should be used sparingly.
Re-Captcha Service
Is a service run by the Carnegie Mellon University who also own the CAPTCHA trademark, it provides webmasters with a CAPTCHA service as well as to help digitise old books.

It works by asking the user for two words instead of the normal one, one word is known to the system and is the actual CAPTCHA the second is an unknown word, if the user gets the CAPTCHA then the users “guess” for the unknown word is recorded, over time a word is given a probability score and when high enough becomes a known word.
This system kills several birds with one stone
- It makes setting up a CAPTCHA easy
- No bandwidth problems for your site
- Audio accessibility built in (so is legal in the EU many CAPTCHA are not)
- Helps save old books by digitising them
Setting up re-captcha with Drupal
Register with captcha http://recaptcha.net/whyrecaptcha.html
Then register your sites at which point you are given a private and public key.
Download
- http://drupal.org/project/captcha - CAPTCHA Module
- http://drupal.org/project/recaptcha - RECAPTCHA Module
- http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest - re-CAPTCHA library
Upload the CAPTCHA and RECAPTCHA modules to your server as normal unzip and add the recaptchalib.php to the RECAPTCHA module in the subfolder called recaptcha.
Add the modules via admin/modules/ and select CAPTCHA and RECAPTCHA under spam protection section.
You can admin CAPTCHA from /admin/user/captcha select RECAPTCHA from the drop down list for every form you wish to protect and click ok, the tab at the top includes a link to the RECAPTCHA page, simply add the keys and hit ok. (If your site or pages use SSL choose the secure socket version under server settings)
You can fine tune which visitors see CAPTCHA via the permissions page.
DEMO - Yes I knew you would ask, www.timnash.me.uk is running re-captcha feel free to leave a comment, but say delete me in the comment if you don’t want it to stay.
Re-CAPTCHA WordPress
A WordPress plugin is available and easy to install from http://recaptcha.net/plugins/wordpress/wordpress but doesn’t have the granularity of the Drupal method and has no means to hook into the permission system.
Subscribe to The Venture Skills Blog by Email
All our Posts are audio subscribed for more information see here, and to access the podcast feed here
This blog is moving soon, make sure you move with us by using our Feedburner RSS feed, if you have used the autodiscovery button in your browser you may need to swap feeds, simply delete the old feed and add, http://feeds.feedburner.com/VentureSkills For a more detailed explanation on feeds and recieving our content in various formats click here

Subscribe to our Odiogo Audio Feed



July 31, 2007 at 9:52 am
[...] Venture Skills Blog talks about incorporating captcha into your comments to prevent spam. All this without increasing bandwidth usage from your [...]
August 1, 2007 at 3:52 pm
Ah yes, this looks very promising! I hate spam, as I’m sure everyone else does. Might try this on a couple of directories that are killing me with spam…
August 3, 2007 at 11:08 am
Recaptcha works well in php without too much experimenting, the perl side (not my best) has some issues and if your retrofitting perl scripts is something to think about.
Generally the bots like front page ” so far.
August 5, 2007 at 8:58 am
What language are these captcha are made in java or in html. any ways, they are good enough.
August 6, 2007 at 12:37 am
Thanks for the cool spam-beating tips.
August 7, 2007 at 6:28 am
I still believe the best anti-bot systems ask easy to answer questions (i.e. math, pop culture, etc.) rather than show an image. Images can be screen-slurped and the sophisticated bots do that. More importantly then worrying about the sophisticated bots, though, I think many CAPTCHA images are ugly. In order to beat the bots, CAPTCHA has to have waves, curves, swirls and annoying backgrounds. I often have to type in the letters multiple times myself.
Why not just ask simple questions (where the question is in an image)? It would be much harder for bots to beat.
August 8, 2007 at 3:40 pm
[...] the Venture Skills Blog, there’s a new post that looks at one of the more recent advancements in keeping the spammers away from your blogs [...]
August 12, 2007 at 2:20 pm
I’m sure everyone else does. without too much experimenting, the perl, than show an image. Images can be screen-slurped and the sophisticated bots do that. More importantly then worrying about the sophisticated bots
August 14, 2007 at 8:03 pm
i HATE captcha. I want to beat it upside the head! We’ve got to come up with a better way to stopping comment spam than captcha! (sorry i got a little feisty)
Did I mention…i HATE captcha!
August 14, 2007 at 8:06 pm
Sara I feel your pain, I can’t say I’m to fond of them myself but they are currently the most reliable method in widespread use and at least this captcha does the world some good to
August 15, 2007 at 4:22 am
I hate captcha too. I’m not sure which I hate more, captcha or spam. Why can’t they make those letters readable? It’s close. Nice site. I will be back.
November 15, 2007 at 7:25 pm
I’m also always having a hard time reading captcha..It would usually take me 2-3 times before I can get it right..^^..I hope they can come up to of better ways to prevent spams other than captcha.