Are you tired of spam comments on your WordPress blog and want to stop them? You are in the right place.
In this tutorial, we will give you step-by-step instructions on how to stop spam comments on your WordPress blog post by integrating the Comment Form with Google reCaptcha.
Although WordPress is a leading and advanced blogging platform, spam comments have always been a headache for bloggers and publishers. Google reCaptcha is a free security service that protects your website from spam comments and malicious attacks.
A simple Google reCAPTCHA WordPress plugin allows you to link your website to the Google reCAPTCHA service. Once your website is verified by Google ReCaptcha, its protection will be enabled on the WordPress comment form.
Follow the steps to integrate your feedback form with Google reCAPTCHA on WordPress.
HOW TO PROTECT SPAM COMMENTS IN WORDPRESS USING RECAPTCHA
01. INSTALL A SIMPLE GOOGLE RECAPTCHA
- Log in to your WordPress admin section.
- Go to Plugins from the side menu and click “Add New”.
- Type “Simple Google reCAPTCHA” in the Plugins search field. It will appear in the search results.
- Click “Install Now” to install the plugin.
- Click the “Activate” button to activate the plugin. After activating the plugin, it will display the Settings as shown in the next step.
02. SET UP A SIMPLE GOOGLE RECAPTCHA
In this section, you will learn how to set up a simple Google reCAPTCHA for your WordPress website.
- Once the plugin is activated, it will show you the settings. You will see a warning that “Google reCAPTCHA is disabled”. This means that you have not yet registered your website with Google reCAPTCHA.
- Click the “Register your domain” link to register your website on Google reCAPTCHA.
You are now registering your website on Google reCAPTCHA.
- In the “Labels” section, enter a name similar to the name of your website.
- In the “reCAPTCHA type”, select the desired reCAPTCHA version. There are 4 types of reCAPTCHA: reCAPTCHA v3, reCAPTCHA v2, reCAPTCHA v2 and reCAPTCHA v2 (Android). Read the ty reCAPTCHA types to learn more about them.
- Here we chose reCAPTCHA V2 (“I’m not a robot” Checkbox).
- In the “Domain” section enter the domain URL without “www”, such as example.com.
- In the “Owners” section, you can add an additional email ID in addition to your Gmail ID.
- Check “Allow reCAPTCHA Terms of Service”.
- Select “Send notification to owners”.
- Click “Submit”.
- You will see a message stating that you have registered your site.
- It will show you two keys (1) SITE KEY (2) SECRET KEY. Now go back to the WordPress admin section and add these two keys to the simple Google reCAPTCHA plugin settings as shown in the next step.
INFORMATION: “Go to Settings” allows you to fix the reCAPTCHA setting, while “Go to Analytics” allows you to see total validations, suspicious requests, forwarded and failed requests, average scores, completed sessions, and average response time (seconds).
You can access your Google reCAPTCHA account (Analytics and Settings) at https://www.google.com/recaptcha/admin/. Make sure you’re signed in to your Gmail account.
- Drop two keys in the corresponding text field of Google’s simple reCAPTCHA setting.
- Click “Save Changes”.
- This will give you “Google reCAPTCHA enabled!” will display the message
- Now open your WordPress website/blog post to make sure reCAPTCHA is working.
Note: reCAPTCHA does not appear in the browser you logged into your WordPress admin section. So open your blog post on another browser you haven’t logged in to.
- Here you can see that the reCAPTCHA (“I’m not a robot” Checkbox) has been successfully integrated with the comment form.
So it was to integrate Google reCAPTCHA with your WordPress website to protect your blog post/article from being sent by spam bots. If you liked this article, don’t forget to share it with others. Share your feedback in the comments section below.