Google reCAPTCHA
Protect login, signup, and reset forms with reCAPTCHA v2 or v3.
reCAPTCHA blocks automated bots on Pro login, signup, and password-reset forms.
Configure under WP ULike → Settings → Login & Signup.
Step 1: Create keys at Google
- Visit Google reCAPTCHA Admin.
- Register a new site:
- Label — e.g. your site name
- reCAPTCHA type — v2 ("I'm not a robot" / invisible) or v3 (score-based)
- Domains — your domain only (no
http://,www, or trailing slash — e.g.example.com)
- Click Submit and copy the Site key and Secret key.
Keys for v2 and v3 are not interchangeable. If you switch types in WP ULike, generate new keys at Google.
Step 2: Enter keys in WP ULike
- Go to WP ULike → Settings → Login & Signup.
- Toggle Enable Google reCAPTCHA.
- Choose reCAPTCHA Type — v2 or v3.
- Paste the matching Site Key and Secret Key (separate fields for v2 and v3).
Optional v2 options: challenge type (image/audio), language, theme, size.
Global scripts
Enable Enable Global reCAPTCHA Scripts if reCAPTCHA must load outside standard form pages — for example modal login or custom hooks.
Step 3: Test the forms
- Open login and signup pages in a private browser window.
- Confirm the reCAPTCHA widget (v2) or invisible challenge (v3) appears.
- Submit a form — invalid or missing responses show errors from Translations → Strings → reCAPTCHA Notices.
The widget does not appear until valid keys are saved. Wrong keys produce errors on the form where reCAPTCHA should render.
Troubleshooting
| Issue | Fix |
|---|---|
reCAPTCHA not visible | Confirm keys match selected type (v2 vs v3); check domain list at Google |
"Invalid site key" | Regenerate keys; domain must match site URL without protocol |
Works on login but not modal | Enable Global reCAPTCHA Scripts |
v3 score failures | Adjust v3 threshold in settings; customize score message in Translations |
v2 vs v3
| Type | Best for |
|---|---|
v2 | Clear user challenge — checkbox or image selection |
v3 | Invisible scoring — fewer clicks; may need tuning for false positives |
Related: Login & Signup Settings · Two-Factor Authentication
Related articles
Continue with these guides
Did this article help?
Pick how you feel, add a note if you want, then hit Send. It takes two seconds and helps us improve this guide.