Want to say goodbye to spam on your WordPress Site? Here’s how to deal with it. In this post, Digimanx will show you how to add Captcha in the comment form of WordPress to fight spambot.
Since the beginning of the internet, all webmasters will be dealing with the spambot. This bot, randomly crawling the web to sending spam comments on any website. Even if we already using anti-spam installed on our site, they (spammer) always found a new way to pass it.
We all hate spam, even spammer may hate spam too. But yeah! this is a part of the internet kind of thing and nothing we can do except to fight them. And if you have tired of seeing spam comments on your WordPress comment moderation lists. This is how to get rid of these annoying spammer.
Say goodbye to spam by placing Google reCAPTCHA on WordPress comment form
One of WordPress plugin that works great for this task called Advanced noCaptcha & invisible Captcha. This plugin will help you to put Google reCAPTCHA
To install the plugin, go to your WP-Admin > Plugins > Add New. And search for Captcha and you’ll see Advanced noCaptcha & invisible Captcha on the list. Just install the plug and activate it.
How to make Captcha plugin works
To make Captcha plugin works, you need to sign up on Google reCaptcha. If you already have, then good all you need to do is just placing your site key and your secret key.
If you guys don’t set
Register your site on Google reCaptcha
First, go to the Google reCAPTCHA site page, and sign up using your Google account. Next, in your admin page fill the reCaptcha forms to create new reCaptcha API for your sites.
In the ‘Label’ form, name it as you like. For example, you can name it My reCaptcha. I really recommended you to choose reCaptcha v3.
Then, in the domains form add all your site you have one per line. Don’t forget to check the accept Terms of services box and hit the ‘Register’ button.
Integrate the your key to WordPress plugin
After you register new reCaptcha, now copy your site key and secret key into WordPress Captcha plugin settings page.
Make sure to choose to place reCaptcha on Inline in the Badge setting and check ‘Comment form’ on the ‘Show reCaptcha on’ setting.
See the example of the screenshot below. Click to enlarge image.
You can let the other setting by default, then save the settings and done!. Now check one of your posts to see that there is now you have a Google reCaptcha badge at the end of your site comment form right just before the Submit button.
Conclusion
Congratulation! now you can say goodbye to spam comment and just focus on creating great content. You know, that sometimes we came with a great idea that we want to share, but when we open the WordPress Admin dashboard we suddenly get distracted by spam queue. Bah! that isn’t cool at all. So! let’s fight spam and spammer.
But wait! what about the Google reCAPTCHA v3 badge? how to hide it?
To hide the Google reCAPTCHA v3 simply put the CSS code below to the WP Custom CSS in the WP built-in CSS editor.
/* Hide reCAPTCHA badge ------------------------------------------- */ .grecaptcha-badge { opacity:0; }
Okay, I hope you found this post useful, thanks for the read and happy blogging 🙂
Kristi Saare Duarte says
Thank you! After reading through through several sites, yours was the first one that explained HOW to actually activate reCaptcha for the WP comments page, after installing it. I finally did it.
Hermansyah Filani says
Hi! You’re welcome Kristi,
Yeah thanks to Shamim Hasan whos create this awesome and efficient WP plugin.