Are you looking to add reCAPTCHA to your WordPress comment form?
Spam comments have gotten out of control on WordPress websites. Instead of turning off the comments, you can add CAPTCHA to the comment form to practically eliminate spam.
In this tutorial, we’ll show you how to easily add reCAPTCHA to the comment form of your WordPress website.
What Is Google ReCAPTCHA?
Comment spam is a problem on many WordPress websites. Akismet, the popular spam filtering service for WordPress, blocks about 7.5 million spam comments every hour. ReCAPTCHA is one of the best ways to fight it.
ReCAPTCHA is an advanced form of CAPTCHA that can distinguish between robots and human users. In fact, CAPTCHA is an acronym for ‘Completely Automated Public Turing Test to tell Computers and Humans Apart’.
Google acquired CAPTCHA technology in 2009 and then later rebranded it as reCAPTCHA. They also made it easier for human users to easily pass the test.
To pass the test, users are required to click a checkbox indicating they’re not a robot. They will either pass right away or be presented with a set of multiple images where they will need to click on matching objects.
Google has made reCAPTCHA publicly available, so that website owners can use it on contact forms, login pages, and comment forms to reduce spam.
It is super easy to set up and add to the WordPress comment form.
With that said, let’s see how to easily add reCAPTCHA to the WordPress comment form with step-by-step instructions.
Installing a WordPress reCAPTCHA Plugin
The first thing you need to do is install and activate the Simple Google reCAPTCHA plugin. You can see our step-by-step guide on how to install a WordPress plugin for detailed instructions.
Upon activation, you’ll be automatically taken to Settings » Google reCAPTCHA to configure the plugin settings.
The plugin will ask you to provide Google reCAPTCHA API keys. You can create these keys for free from the official reCAPTCHA website by clicking the ‘register your domain’ link at the top of the screen.
Registering Your Website to Get reCAPTCHA API Keys
The ‘register your domain’ link will take you to the Google reCAPTCHA website where you can register your site to work with reCAPTCHA.
You’ll be asked to sign in with your Google account. After that, you’ll see the ‘Register a new site’ page where you need to provide some basic information to register your site.
First, you need to type your website name or any name of your choice in the Label field. This will help you easily identify your site in the future.
Next, you need to select the ‘reCAPTCHA V2’ radio button. This will open up 3 new options.
Since you want to add the reCAPTCHA checkbox to your site, you need to select the first option, ‘I’m not a robot Checkbox’.
The Domains textbox allows you to add the domain name of your website where you would like to add the reCAPTCHA checkbox.
You can also add multiple domains or subdomains by clicking on the plus (+) icon. This will allow you to use the same API keys on different websites.
Under Owners, Google will already add your email address. You can also add another email if you want.
Next, you need to accept the terms of service to use Google reCAPTCHA on your site.
Also, select the ‘Send alerts to owners’ checkbox to allow Google to send emails to you if they detect any misconfiguration or suspicious activity.
Once you’ve filled out the form, you can click on the Submit button to register your site.
Google reCAPTCHA will now show you a success message along with the site key and the secret key on this page.
You can now use these API Keys in plugin settings on your website.
Adding reCAPTCHA to WordPress Comment Form
Now you can head back to Settings » Google reCAPTCHA from the left sidebar of your website’s admin panel.
On the settings page, you need to paste the site key and the secret key.
The plugin will add reCAPTCHA verification to the WordPress comment form as well as the registration form, reset password form, new password form, and login form.
If you like, you can check the disable reCAPTCHA on the login form by clicking the checkbox.
Once you’re done, don’t forget to click the ‘Save Changes’ button to store the API keys and enable reCAPTCHA.
Congratulations, you’ve successfully added reCAPTCHA to your WordPress comment form. You can now check the comment section of your blog posts to confirm that it’s working properly.
Note: The reCAPTCHA checkbox will be displayed only to logged-out users. To preview reCAPTCHA, you will need to either log out of WordPress or open your website in an Incognito window of your browser.
We hope this tutorial helped you learn how to add reCAPTCHA to the WordPress comment form of your website.
You may also want to learn about how to lazy load comments in WordPress to improve your page loading time or check out our list of must have plugins to grow your site.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
afdhal says
thanks for the tips! no more bot in my comment.
WPBeginner Support says
Glad you found this recommendation helpful
Admin
Moh says
Why don’t you have CAPTCHA here on your website?
WPBeginner Support says
We are trying other tools on our site, there’s nothing wrong with using CAPTCHA but it is personal preference if you use it.
Admin
Simon Griffiths says
The plugin you recommend looks like it’s not supported anymore. Are there any others?
WPBeginner Support says
We will be sure to take a look and update our suggestion should we find an alternative we would recommend.
Admin
Jack says
Perfect! One huge WordPress annoyance will be gone!
WPBeginner Support says
Glad our guide was helpful
Admin
jodarove says
Thank you! very helpful!
WPBeginner Support says
You’re welcome
Admin
Duncan McCormack says
re the reCAPTCHA section when you visit the plugin it says at the top: This plugin hasn’t been tested…
Is this still the best Plugin to use? Is it safe? Or is there now a better one out there?
Cheers, Duncan.
WPBeginner Support says
For the not tested warning, you would want to take a look at our article below for our recommendations on this:
https://www.wpbeginner.com/opinion/should-you-install-plugins-not-tested-with-your-wordpress-version/
Admin
Steve says
I followed the instructions exactly and the reCaptcha button will not appear on my site at all. Signed out of WP. Incognito window. nothing.
WPBeginner Support says
Please reach out to the plugin’s specific support to see if this could be due to a conflict between your specific theme and the plugin itself.
Admin
Desi says
This plugin is no longer working. I have installed it and none of the buttons will toggle.
WPBeginner Support says
You would want to reach out to the plugin’s support and let them know to help remove the issue.
Admin
DonDee says
FYI… The new v3CAPTCHA does not provide a clickable “I am not a Robot” conformation. The only way to tell if it’s running on the site is a CAPTCHA icon floating in the lower right hand side of the screen on the site you’re on.
WPBeginner Support says
Thanks for sharing this for anyone using v3
Admin
Pradeep Singh says
Hello
If I am using Akismet antispam plugin still I need to use reCaptcha technology?
Thanks
WPBeginner Support says
That would be a personal preference question, both are tools to help prevent spam and will work together.
Admin
pepe says
The recaptcha is not showing!
help!
WPBeginner Support says
You may want to check your site in an incognito browser where you’re not logged into your site to make sure it isn’t hiding for your admin user.
Admin
bob martin says
Help! I clicked on save api keys button like tutorial said and now my site isn’t working at all.
WPBeginner Support says
It would depend on what your error is for the cause and possible solution, for a starting point you would want to take a look at our guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Admin
Eva Live says
Does this mean if I use this, I don’t really need to moderate all comments? I don’t like that comments don’t show up as soon as they are posted, it has to wait until I get around to reviewing comments.
WPBeginner Support says
You would still need to moderate comments, reCAPTCHA is a way to prevent spam from bots but there can be other comments you don’t want on your site
Admin