Google reCAPTCHA

Google reCAPTCHA is the most widely used CAPTCHA service, protecting millions of websites from spam and abuse. This module adds reCAPTCHA to WordPress core forms and integrates with popular form plugins.

Use Cases

  • Protect login forms from automated attacks
  • Prevent spam user registrations
  • Block comment spam without manual moderation
  • Secure contact forms from bot submissions

reCAPTCHA Versions

VersionUser ExperienceBest For
v2 CheckboxUser clicks “I’m not a robot”Visible verification, highest accuracy
v2 InvisibleNo visible widget, challenge only if suspiciousClean forms, good accuracy
v3Completely invisible, score-basedBest UX, requires score threshold tuning

Getting API Keys

  1. Go to Google reCAPTCHA Admin
  2. Click the + button to register a new site
  3. Choose your reCAPTCHA type (v2 or v3)
  4. Add your domain(s)
  5. Copy Site Key and Secret Key
  6. Paste them in module settings

Make sure to select the correct reCAPTCHA type when registering. v2 keys won’t work with v3 settings and vice versa.

Protected Forms

WordPress Core Forms

FormSetting
Loginprotect_login
Registrationprotect_registration
Password Resetprotect_password_reset
Commentsprotect_comments

Switchboard Integrations

IntegrationSetting
Simple Formsprotect_simple_forms
Magic Loginprotect_magic_login

Third-Party Forms

PluginHow to Add
Contact Form 7Add [switchboard_recaptcha] tag to your form
Fluent FormsAdd “Google reCAPTCHA” field from Advanced fields

Settings

SettingTypeDefaultDescription
Site KeyTextYour reCAPTCHA public site key
Secret KeyTextYour reCAPTCHA secret key
VersionSelectv2 CheckboxreCAPTCHA type to use
v3 Score ThresholdNumber0.5Minimum score for v3 (0.0-1.0)
ThemeSelectLightLight or dark widget theme
LanguageSelectAutoWidget language (auto uses WP locale)
Skip Logged-in UsersToggleOnDon’t show CAPTCHA to logged-in users
Error MessageTextCustomMessage shown on verification failure

v3 Score Threshold

reCAPTCHA v3 returns a score from 0.0 (likely bot) to 1.0 (likely human):

ScoreLikely User Type
0.9+Very likely human
0.7-0.9Probably human
0.5-0.7Uncertain
0.3-0.5Suspicious
Below 0.3Likely bot

The default threshold of 0.5 is a reasonable starting point. Lower it if legitimate users are being blocked; raise it if you’re still getting spam.

Contact Form 7 Integration

  1. Enable “Contact Form 7” in module settings
  2. Edit your CF7 form
  3. Add the tag: [switchboard_recaptcha]
  4. Place it before the submit button

Example:

[text* your-name]
[email* your-email]
[textarea your-message]
[switchboard_recaptcha]
[submit "Send"]

Fluent Forms Integration

  1. Enable “Fluent Forms” in module settings
  2. Edit your form in Fluent Forms
  3. Find “Google reCAPTCHA” under Advanced fields
  4. Drag it into your form

Badge Position (v3)

For invisible v3 reCAPTCHA, you can choose where the badge appears:

  • Bottom Right — Default, floating badge
  • Bottom Left — Floating badge on left
  • Inline — Badge inline with form (hides floating badge)

If you hide the reCAPTCHA badge, Google requires you to include their branding and links in your privacy policy.

FAQ

Should I use v2 or v3?v2 Checkbox is more visible but has highest accuracy. v3 is invisible but requires threshold tuning. Start with v2 Checkbox if you’re unsure.
Why are legitimate users failing reCAPTCHA?For v3, try lowering the score threshold. For v2, users on VPNs or with certain browser extensions may trigger challenges more often.
Can I use this with Cloudflare Turnstile?Having both enabled will cause conflicts. Use one CAPTCHA solution, not multiple.
Does reCAPTCHA slow down my site?reCAPTCHA scripts are loaded asynchronously and cached. Impact is minimal, but v3 does load on every page where it’s needed.
Is reCAPTCHA GDPR compliant?reCAPTCHA collects user data and sends it to Google. You should disclose this in your privacy policy. Consider Cloudflare Turnstile for a more privacy-focused alternative.

reCAPTCHA requires your site to be publicly accessible. It won’t work on localhost or development environments without special configuration.

PRO

Get access to all 166 modules with a single license

Upgrade to Pro