Login

    Register

PROJECT CATEGORIES

 

ColdFusion reCAPTCHA tag
Project Home Forums Wiki Known Issues External Project Link Contact Project

Author: Robin Hilliard (All RIAForge projects by this author)
Last Updated: April 8, 2008 12:52 AM
Version: 1.0
Views: 8591
Downloads: 1855
Demo URL: http://www.rocketboots.com.au/blog/addcomment.cfm?id=D7BBAE85-E081-51EF-A738CDDCA8CD1C51
License: GPL (GNU General Public License)

Description:

-----------------------

Just wanted to say THANKS! I got everything working a couple nights ago, and ever since then... ZERO spam. After a rough couple weeks of sometimes up to 100 spam bot entries per day in my guest book, I am a very happy camper.

- Danny Engesser

-----------------------



Here's a super quick way to implement a captcha solution for your web site and help the book readers of the world at the same time.

Young Mike Crawford from the AFR Access project headed over to the US last year to make his fortune, however discovering that he had missed the gold rush by some one hundred and fifty eight years he decided to settle for a merely interesting job at Carnegie Mellon in Pittsburgh.

Mike pinged me a few days ago to let me know that they were going live with their first project, reCAPTCHA. This is a really interesting project - basically they are providing a free "captcha" API for people to integrate into their sites. The twist is that they are mixing failed OCR scan data from book digitisation projects into the captcha image, so every time someone enters a captcha response they are actually helping to digitise a book! Considering that an estimated 60 million captcha responses are entered every day there's a potential to digitise about 127 very smudged and fly-spotted Lord of the Rings in the same period.

Some APIs are already available for reCAPTCHA but there wasn't one for ColdFusion, so I've created a simple tag that does the job. To use it you will need to apply for some keys. Here's a simple example of the tag in use:

<html>
<body>
<cfform>
<cf_recaptcha
privateKey="...your private key..."
publicKey="...your public key...">
<cfinput type="submit" name="submit">
</cfform>
<cfif isDefined("form.submit")>
<cfoutput>recaptcha says #form.recaptcha#</cfoutput>
</cfif>
</body>
</html>

You can check the response without rendering the form field if necessary - there is an example in the comments. If you want to see the tag in action I've integrated it into the comments dialog on this site.

Requirements:

ColdFusion 7

Issue Tracker:

ID ISSUE STATUS UPDATED
1 tag needs cfsetting enablecfoutputonly="false" at bottom Open 03/17/08 7:39 PM

View All Issues

To enter issues for this (or any other) project, you must be logged in.