Forum OpenACS Q&A: reCAPTCHA proposal

Collapse
12: reCAPTCHA proposal (response to 11)
Posted by Alessandro Landim on
Hi everyone,

What do you think about use reCAPTCHA.net to resolve the Inaccessibility of CAPTCHA?

I've developed a package that use this service and can provide this check in ad_form.

Try to download it at: http://dl.dropbox.com/u/6061429/recaptcha/recaptcha.tar.gz

You need create an account at www.recaptcha.net and get the public and private key. After this, add this keys in /recaptcha/public_key.txt and /recaptcha/private_key.txt.

To use it in ad_form, add this line:

recaptcha::create -form $adform_name

and add a validate in ad_form

-validate {
        {recaptcha_service
                {[recaptcha::check -challenge_field $recaptcha_challenge_field -response_field $recaptcha_response_field]}
                "\"#<span>recaptcha.Title</span>#\" #<span>recaptcha.Error</span>#"
        }
}

In my blog I posted an image of this usage http://alessandrolandim.blogspot.com/2010/04/recaptchanet-no-openacs.html

Collapse
13: Re: reCAPTCHA proposal (response to 12)
Posted by Dave Bauer on
This sounds good. I will try to review this.
Collapse
14: Re: reCAPTCHA proposal (response to 13)
Posted by Torben Brosten on
This is great.

Please make sure code works well when connecting securely.

More info under "Using reCAPTCHA on an https site" at http://recaptcha.net/apidocs/captcha/client.html