In this guide you will learn how to add Google reCAPTCHA in WordPress step by step to protect your website from spam bots.
Spam bots are a big problem for WordPress websites.
If your site has a contact form, login page, or comments section, bots can send spam messages. Sometimes they also try to break into your website.
The easiest way to stop this is Google reCAPTCHA.
reCAPTCHA is a free security system from Google. It checks if a visitor is a real human or a bot.
In this guide, you will learn how to add Google reCAPTCHA to your WordPress website step by step.
Table of Contents
ToggleWhat is Google reCAPTCHA
Google reCAPTCHA helps websites stop spam and automated attacks.
When a user submits a form, reCAPTCHA checks the visitor before allowing the action.
You may have seen this message before:
I’m not a robot
Sometimes Google also asks users to select images like traffic lights or buses.
This simple check blocks most spam bots automatically.Why You Should Add reCAPTCHA to WordPress
If your WordPress website does not use captcha protection, you may face problems like:
- Spam contact form messages
- Fake user registrations
- Comment spam
- Login brute force attacks
Adding reCAPTCHA helps protect your website from these issues.
Step 1: Create Google reCAPTCHA Keys
First you need to generate two keys from Google.
Site Key
Secret Key
These keys connect your website with Google reCAPTCHA.
How to generate the keys
Go to Google reCAPTCHA admin console
Login using your Gmail account
Click Register a new site
Fill the form like this.
Label
reCAPTCHA Type
Your Website reCAPTCHA v2
I’m not a robot Checkbox
Domain
yourdomain.com
Then click Submit.
Google will generate your Site Key and Secret Key.
Copy both keys.
Step 2: Install a reCAPTCHA Plugin in WordPress
Now go to your WordPress dashboard.
yourdomain.com/wp-admin
Then go to
Plugins → Add New
Search for
Advanced Google reCAPTCHA
Install and activate the plugin.
Step 3: Add the Site Key and Secret Key
After activating the plugin, open its settings.
Paste the keys you copied earlier.
Site Key
Secret Key
Then click Save Changes.
Now your WordPress website is connected to Google reCAPTCHA.
Step 4: Enable reCAPTCHA on Important Pages
Most plugins allow you to enable captcha on multiple pages.
You can protect:
- WordPress login page
- registration page
- password reset page
- comment form
Just enable the options you want and save the settings.
Watch the Full Video Tutorial
You can also follow the full process in this video.
Play this video for real learning.
Final Thoughts
Spam bots can damage your website and waste your time.
Google reCAPTCHA is a simple and effective solution.
It only takes a few minutes to set up and can stop most spam attacks.
If you run a WordPress website, adding reCAPTCHA is highly recommended.
FAQ (Good for SEO)
Is Google reCAPTCHA free?
Yes. Google reCAPTCHA is completely free for most websites.
Which reCAPTCHA version is best for WordPress?
Most website owners use reCAPTCHA v2 checkbox because it is easy to use and reliable.
Does reCAPTCHA slow down a website?
No. It has very little impact on website performance.

