How to Add reCAPTCHA to WordPress Comment Form

Get real time updates directly on you device, subscribe now.

Do you want to add reCAPTCHA to your WordPress response form?

Spam comments got out of hand for WordPress websites. As spammers become more sophisticated, they can carry out massive spam attacks with minimal effort.

Akismet, the popular spam filtering service for WordPress, blocks around 7.5 million spam responses every hour.

Instead of disabling the comments, you can add CAPTCHA to the response form to virtually eliminate spam.

In this tutorial, we show you how you can easily add reCAPTCHA to the response form of your WordPress website.

What is Google reCAPTCHA?

ReCAPTCHA is an advanced form of CAPTCHA, a technology used to distinguish between robots and human users. CAPTCHA is an acronym for “Fully automated public Turing test to keep computers and people apart”.

Google took over the CAPTCHA technology in 2009 and later converted it back to reCAPTCHA. They also made it easier for human users to easily pass the test.

In short, it offers users a simple checkbox that they can click to pass the test. If the test does not validate for whatever reason, the user is challenged to identify text in an image or to match objects in multiple images.

Google has made reCAPTCHA publicly available so that website owners can use it on contact forms, login pages and comment forms to reduce spam.

Here is an example of what the reCPATCHA test looks like for the majority of your users:

It is super easy to set up and add to the WordPress response form.

With that said, let’s see how easy reCAPTCHA can be added to the WordPress comment form with step by step instructions.

Step 1: Get started

The first thing you need to do is install and activate the reCAPTCHA in the plugin WP comment form. You can view our step-by-step guide on installing a WordPress plug-in for detailed instructions.

After activation, you must visit the  Settings »reCAPTCHA page on the Comments page to configure the settings for plugins.

The plug-in will ask you to provide Google reCAPTCHA API keys. You can create these keys for free on the official reCAPTCHA website.

Step 2: register your website to get reCAPTCHA API keys

The plug-in requires two Google API keys to add a reCAPTCHA checkbox to your response form.

To obtain the API keys, go to the  Google reCAPTCHA website and click on the “Admin Console” button in the upper right corner of the screen.

You will be asked to log in with your Google account. After this, you will see the page “Register a new site” where you must provide some basic information to register your site.

First, you have to type the name of your website or the name of your choice in the Label field. This will help you easily identify your site in the future.

You must then select the reCAPTCHA V2  radio button.

This opens 3 new options. Because you want to add the reCAPTCHA checkbox to your site, you must select the “I am not a robot” option.

In the Domains text box, you can add the domain name of your website where you want to add the reCAPTCHA check box.

You can also add multiple domains or subdomains by clicking the plus sign (  +  ). This allows you to use the same API keys on different websites.

Under owners, Google already adds your email address. You can also add an e-mail if you want.

You must then 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 a misconfiguration or suspicious activity.

After you have completed the form, you can click on the Send button to register your site.

Google reCAPTCHA now shows you a success message along with the site key and the secret key on this page.

You can now use these API keys in plug-in settings on your website.

Step 3: add reCAPTCHA to WordPress Comment Form

Go to  Settings  »  reCAPTCHA in Comments from the left sidebar of your admin panel.

On the settings page, you have to scroll down to paste the site key and the secret key.

When you are finished, click on the “Save your Google reCAPTCHA API Keys” node to save the API keys.

The last thing to do is to enable reCAPTCHA by clicking the toggle button and then clicking  Save Changes.

You can also make basic adjustments by clicking on the reCAPTCHA Customizer option.

Here you can change the style, size, and alignment of the reCAPTCHA check box.

The plug-in also has the Antispam settings option, which allows you to decide what to do when the plug-in detects an unauthorized comment or security breach.

Congratulations, you have successfully added reCAPTCHA to your WordPress response form. You can now view the comments section of your blog posts to see if it works properly.

Note:  The reCAPTCHA check box is only displayed for logged out users. You must, therefore, log out or open your website in an incognito window of your browser to view a preview of reCAPTCHA.

We hope this tutorial helped you to add reCAPTCHA to the WordPress response form of your website.

Get real time updates directly on you device, subscribe now.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More