Add Google reCAPTCHA (v3) to Form || Protect your site from Spammers!

Most of the new bloggers and website owners are not aware of the spammer’s attacks on their blogs via contact form and comments. However, it is very crucial to save yours sites from such type of attacks. For this purpose, Google has introduced a services called reCAPTCHA. In fact, Google reCAPTCHA protects yours blogs/websites against spam and other kind of automated abuse.

Fortunately, a free WordPress plugin, known as Contact Form 7, is available that can protect your site from such types of spammer’s attacks. With the help of this reCAPTCHA integration module, you are now able and in the position to block abusive form submissions by spam bots.

With the passage of time new version are introducing and now latest version of the reCAPTCHA API is v3. Again fortunately, the free WordPress plugin “Contact Form 7 5.1” and later uses this reCAPTCHA v3 API. Keep in mind that this reCAPTCHA v3 works in the background of your site, so there is no need for users to read blurred text in an image or even tick the checkbox of “I’m not a robot”

Here is another point that is needed to be kept in mind and that is API keys for reCAPTCHA v3 are completely different from those for v2. It is, therefore, that keys for v2 don’t work with the keys for v3 API. Now you will be required to register your sites again to get new keys for v3. If you are using the old version of Contact Form 7 and are looking for information about the reCAPTCHA module for the v2 API, so you can refer to reCAPTCHA (v2).

Another main point that is necessary to be kept in mind that reCAPTCHA v3 doesn’t need a CAPTCHA widget (the “I’m not a robot” checkbox used in reCAPTCHA v2) to work, it is, therefore, [recaptcha] form-tags are no longer necessary. However, in case [recaptcha] form-tags are found in a form template, Contact Form 7 5.1 or higher ignores them and replaces them with an empty string.

Note: Also read about add Custom Scrollbar to Any Element in WordPress

Registering Your Site With Google reCAPTCHA

As mentioned above, you can register your blog or website with Google reCAPTCHA to protect your site against spammer’s attacks. If you are interested and want to use reCAPTCHA on your site, so first of all you’ll be needed to register your WordPress site. For registering your WordPress site first of all you will need a Google account to use it because, we are again reminding you here that, reCAPTCHA is Google’s service.

If you have not created account on Google, you can Sign Up here. However, if you have already one, you can Sign in to Google with your account, and then go to the My reCAPTCHA page. Once you go to the simple registration form that will look like the following screen shot.

After going to this page, you see that different options are provided there. Keep remember that you have to choose reCAPTCHA v3 from the options provided there. Below these options, another option is also provided and that is your Domain. In this field you have to enter the domain of your blog or website.

Once you have registered your blog or website, the Google reCAPTCHA will give you a site key and secret key for your site. Copy the site key and secret key into the safe area on your clipboard.

In the next step, you have to go to the WordPress main Dashboard admin area and click on the Contact > Integration menu page. This will look like the following screen shot.

After you have clicked on the Integration menu, you will see a box titled “reCAPTCHA” there. In the next step, you have to click on the “Setup Integration” button in the provided box. The SetUp Integration button will show the input fields of Site Key and Secret Key. Now, past the two keys, that you have already received in the previous step and then copied into your clipboard, into the input fields and then click on the “Save Changes” button of blue color.

Leave a Reply

Your email address will not be published. Required fields are marked *