Google reCAPTCHA prevents spam by checking whether a submitter is human or a bot. In this guide, you will learn how to create and add it to Bricks Builder or another plugin in just a few minutes.
Overview of reCAPTCHA v3 and v2
Two variants are available:
- reCAPTCHA v3: Invisible, works with a “score” (recommended for Bricks).
- v3 gives each submission a score between 0.0–1.0 (higher = likely human). You choose a threshold (e.g., 0.5). Low scores can be blocked or require extra verification.
- reCAPTCHA v2: Visible “I’m not a robot” checkbox or an invisible variant.
- v2 requires the user to actively check a box (or sometimes solve an image puzzle). This introduces a bit more “friction” but is clearly visible.
For Bricks Builder forms, we use v3.
Step-by-Step Plan
- Go to the official admin page: Google reCAPTCHA admin
- Log in with your Google account.
- Fill in:
- Label: Choose something recognizable (e.g., “yourdomain.com v3”).
- Type: Select “reCAPTCHA v3”.
- Domains: Add your domain(s) without https:// (e.g., yourdomain.com and www.yourdomain.com). Optionally, add your staging or test domain.
- Accept the terms and continue.
- Copy the Site key and the Secret key. You can always view these later, so it’s not necessary to save them yourself.
- Add the keys in Bricks Builder
- In WordPress, go to: Bricks Builder > Settings > API Keys.
- Find the section “Google reCAPTCHA v3”.
- Paste “Site key” and “Secret key” into the correct fields.
- Click “Save” at the bottom.
- Activate reCAPTCHA v3 in your Bricks Form
- Open your page with Bricks and select your Form element (or add a new Form).
- In the Form settings, go to “Spam protection”.
- Choose “Google reCAPTCHA v3”.
- If available, set:
- Minimum score: Start with 0.5 for a balance between usability and protection (higher = stricter).
- Action label: A short context, such as “form_submit” (useful for your own reporting).
Test Your Form (Important!)
- Open the front-end of your page and submit the form as a normal user.
- Repeat in an incognito/private window.
- Do not expect a visible checkbox with v3; the submission should go smoothly.
- After submission, check:
- Do you receive the confirmation/email?
- Do you see any error messages in the browser console (press F12 > Console)?
Common Problems and Solutions
- Invalid key or domain mismatch:
- Check if the Site key and Secret key are in the correct place (not swapped).
- Add the exact domain used and its www-variant in Google reCAPTCHA and save. Wait 2–5 minutes and test again.
- Form does not submit or blocks unexpectedly:
- Caching/minification: Temporarily disable your cache/minify (plugin or server) and test again.
- Consent/Privacy: Some cookie or consent plugins block Google scripts. Allow reCAPTCHA after consent.
- Duplicate scripts: Prevent another plugin from also injecting reCAPTCHA into the same form.
- Too strict (legitimate submissions are rejected):
- Lower the minimum score (e.g., from 0.7 to 0.5 or 0.4).
- Combine with other anti-spam measures (honeypot, time slot).
- Staging or subdomains do not work:
- Also add your staging or subdomain(s) in the reCAPTCHA settings at Google.
Best Practices Against Spam
- Combine reCAPTCHA v3 with:
- Honeypot field (hidden field that bots fill in).
- Time slot (form can only be submitted after X seconds).
- Rate limiting at server level or via a security plugin.
- Monitor your submissions:
- If spam increases, gradually raise the score.
- If legitimate submissions are blocked, lower the score.
Privacy and GDPR
Mention in your privacy policy that you use reCAPTCHA for protection against spam and abuse.
Add links to: