Set up reCAPTCHA v2 and v3
reCAPTCHA is Google’s CAPTCHA service. Shield supports two versions, and you pick one:
- reCAPTCHA v2 shows a checkbox (“I’m not a robot”). The visitor sees it and clicks it.
- reCAPTCHA v3 is invisible. Google gives each visitor a score from 0.0 (very likely a bot) to 1.0 (very likely human), and Shield blocks scores below your threshold.
v2 and v3 use different keys. A v2 key does not work with v3, and the other way round. Choose the version first, then create keys of that type.
Before you start#
You need a Google reCAPTCHA account with a site registered for your domain. reCAPTCHA is a third-party service with its own terms, so check Google’s site for current requirements.
Step 1: Create your keys at Google#
- Go to the Google reCAPTCHA admin console and register a new site.
- Give it a label.
- Choose the type: reCAPTCHA v2 (the “I’m not a robot” checkbox) or reCAPTCHA v3.
- Add your domain.
- Submit, then copy the Site key and the Secret key.
Step 2: Add the keys to Shield#
- Go to Settings → Login Shield and open the Widget tab.
- Click the reCAPTCHA v2 tile (note: “Checkbox challenge (Google)”) or the reCAPTCHA v3 tile (note: “Invisible score-based (Google)”).
- Paste the Site key.
- Paste the Secret key. After you save, the field stays blank and shows “Secret key is set”. Leave it blank to keep the saved key.
- Click Save widget settings.
Keys are stored in the WordPress options table.
Step 3: Choose when to show the challenge#
Show challenge has two options:
- Always (all visitors): every visitor goes through reCAPTCHA.
- Only after first failed attempt: visitors log in normally until their first failed attempt.
With v3 the challenge is invisible, so “Always” costs your visitors nothing.
Step 4 (v3 only): Set the score threshold#
The Score threshold field appears only when reCAPTCHA v3 is selected. It runs from 0.0 to 1.0 in steps of 0.05. The default is 0.5.
- 0.0 allows everything.
- 1.0 blocks everything.
- Requests scoring below the threshold are blocked. Visitors who are blocked see “Automated activity detected. Please try again.”
Start at 0.5. If real users get blocked, lower it. If bots get through, raise it a little at a time.

Step 5: Test it#
- Open a private window and go to your login page.
- With v2, you should see the checkbox. With v3, the page may show only Google’s badge.
- Log in as a test user.
On the Widget tab you can also use the Live preview, which uses the site key you saved. Save first if you just changed the key.
Where it’s used#
The same provider protects the login form and the other forms Shield covers, such as registration and lost password, when you’ve turned those on. The v3 score threshold applies on login, registration, lost password, WooCommerce and custom forms. On Bricks, SureForms and comment forms the token is verified with Google, but the score is not compared with the threshold.
If Google can’t be reached#
Shield fails open. If Google’s service is unreachable, or returns an unreadable reply, the login goes through, so you are never locked out by an outage. Lockout, blocklists, honeypot usernames and 2FA keep working.
If a visitor’s browser blocks the reCAPTCHA script, v3 has no token to send. In that case they see “CAPTCHA response missing. Please complete the challenge.” on the login, registration and WooCommerce forms, and “Please complete the security check.” on Bricks, SureForms, comment and custom forms.
Privacy#
reCAPTCHA loads a script from Google and sends Google information about the visitor’s browser and visit. Name Google reCAPTCHA in your privacy policy and cookie notice. If you use a cookie banner, you may need consent before the script loads. Check your own legal requirements.
Troubleshooting#
- The widget doesn’t appear: check that the site key is saved, the key type matches the tile (v2 key with the v2 tile, v3 key with the v3 tile), and your domain is registered with Google.
- Every login fails: the secret key is wrong or from the wrong version. Paste it again.
- Real users are blocked with v3: lower the Score threshold.
- A caching plugin serves a stale login page: exclude the login page from caching. See the caching docs under Troubleshooting.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!