To add Google reCAPTCHA to a WordPress site, you’ll need to install a plugin, obtain API keys from Google, and then configure the plugin with those keys.
Here’s a step-by-step guide:
1. Install a reCAPTCHA Plugin:
- Log in to your WordPress admin dashboard.
- Go to “Plugins” and then “Add New”.
- Search for “reCAPTCHA” or a specific plugin like “Advanced Google reCAPTCHA” or “Simple Google reCAPTCHA”.
- Install and activate the chosen plugin.
(This website uses the Contact Form 7 Captcha plugin)
2. Obtain Google reCAPTCHA API Keys:
- Go to the Google reCAPTCHA registration page:
- Link: https://www.google.com/recaptcha/admin/create
- Choose the reCAPTCHA type (e.g., v2 or v3).
- Add your site’s domain(s).
- Click “Submit” to generate the site key and secret key.
(If you need to find them again they are in ‘Settings’ in https://www.google.com/recaptcha/admin/site/…)
3. Configure the Plugin:
- Go to the plugin’s settings page in your WordPress dashboard.
- Find the fields for “Site Key” and “Secret Key”.
- Paste the keys you obtained from Google into the respective fields.
- Save the settings.
- Add the shortcode to Contact form 7 –
4. Test the reCAPTCHA:
- Visit your WordPress site and test the comment form or any form where you want to use reCAPTCHA.
- You should see the reCAPTCHA widget on the form.
This video demonstrates how to add Google reCAPTCHA to WordPress forms: