Skip to main content

Google reCAPTCHA

reCAPTCHA is the captcha of Google. It comes in three kinds, each a choice of its own under Captcha service:

  • Google reCAPTCHA v2, checkbox: the box "I'm not a robot", with a puzzle of pictures when Google doubts the visitor.
  • Google reCAPTCHA v2, invisible: no box, a puzzle only when Google doubts the visitor.
  • Google reCAPTCHA v3: never a puzzle. Google gives each visitor a score from 0.0, likely a bot, to 1.0, likely a person, and your site refuses the forms below the score you set.

How spam protection works, and where each check runs, is on Spam protection.

1. Register your site​

  1. Open the reCAPTCHA admin console with a Google account and press Create (the plus).
  2. Give it a label, such as your site, and choose the kind: Score based (v3), or Challenge (v2) with "I'm not a robot" Checkbox or Invisible reCAPTCHA badge. Keys of one kind don't work for another.
  3. Add the domain of your site, such as example.com, and press Submit.
  4. Copy the Site key and the Secret key.

2. Enter the keys​

  1. In WordPress, go to Poly Community → Settings → Services → Spam protection.
  2. Under Captcha service, choose the kind you registered.
  3. Paste the Site key and the Secret key.
  4. For v3, set the Minimum score, 0.5 to start. Raise it if bots still get through, lower it if people are refused.
  5. Under Where the check runs, choose The site captcha for the forms you want it on, and press Save changes.
Spam protection with Google reCAPTCHA v3 chosen: the site key, the secret key and the minimum score
Settings → Services → Spam protection, Google reCAPTCHA v3

Trying it first​

For v2, Google publishes test keys that pass every time and show a line saying they are for testing: the site key 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI with the secret 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe. There are none for v3: register a second site for testing instead.

Google gets the address and the browser of each visitor who meets reCAPTCHA. Name it in your privacy policy, or hold it for consent as Spam protection says.