This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • reCAPTCHA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

What is CAPTCHA

A CAPTCHA is a program that protects websites against bots by generating and grading tests that humans can pass but current computer programs cannot. For example, humans can read distorted text as the one shown below, but current computer programs can't

What is reCAPTCHA

reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. For more information see the reCAPTCHA website.

Here is a sample of a reCAPTCHA image on a website.

Steps

  1. Register your domain with the reCAPTCHA website.
  2. Download the Java library from here.
  3. Download the Div.java and ReCaptchaField.java.
  4. Add the following code into your click form.
Code Block
titleDeclaration
ReCaptchaField  reCaptchaField = new ReCaptchaField("captcha", 
                                                    YOUR_CAPTCHA_PUBLIC_KEY,
                                                    YOUR_CAPTCHA_PRIVATE_KEY, 
                                                    ReCaptchaField.THEME_CLEAN);
Code Block
titleAdd to form
Div reCaptchaHolder = new Div();
reCaptchaHolder.add(reCaptchaField);
form.add(reCaptchaHolder);