In this article, you will learn how to add reCAPTCHA to Contact Form 7. You can add both reCAPTCHA v3 and reCAPTCHA v2 to Contact Form 7.
Spamming is a big problem if you have Contact Form 7 plugin in your WordPress site. In order to stop spam and block spam bots from using your Contact Form 7 forms, you have to add Contact Form 7 reCAPTCHA.
Adding reCAPTCHA to your WordPress contact form protects your website from fraud & abuse. reCAPTCHA helps you stop spam bots and other automated attacks while approving valid users to submit form entries.
Contact Form 7 plugin is a popular WordPress form plugin to create contact forms in WordPress. So in this post we will see how to add reCAPTCHA to Contact Form 7 plugin.
Contact Form 7 (CF7) plugin by default supports Google reCAPTCHA, so you don’t need any other additional plugins for reCAPTCHA. CF7 officially supports reCAPTCHA v3 which invisible to users and does not interrupt user experience.
reCAPTCHA v3 does not require any actions from users but automatically sets scores by working in the background your Contact Form 7 forms will be protected by the invisible reCAPTCHA.
There is also the reCAPTCHA v2 which is available. It verifies if an interaction is legitimate with the “I am not a robot” checkbox and with invisible reCAPTCHA badge challenges. If you want to add reCAPTCHA v2 to your Contact Form 7 forms you would need an additional add-on. We will also cover adding reCAPTCHA v2 in this post.
Whether its v3 or v2, in order to add reCAPTCHA to Contact Form 7 you first need to generate API keys for the reCAPTCHA. To do this login to Google reCAPTCHA.
If you are using Contact Form 7 plugin you know that tough its features are good, but they are very limited. You have to use CF7 addon plugins to extend even the basic features such as saving Contact Form 7 form submissions to database.
You could install Tablesome, as it is an All-In-One solution for extending Contact Form 7. You can easily save Contact Form 7 messages and do other Contact Form 7 automations with the free Tablesome plugin.
Also See: How to save Contact Form 7 submissions to database
To add the reCAPTCHA keys, go back to your WordPress dashboard and then,
A small reCAPTCHA badge like the image displayed above will appear at the bottom right of each page, if the reCAPTCHA v3 is working correctly on your site. This badge is added to inform the site visitors that they are tracked by Google and it provides links to reCAPTCHA’s privacy policy.
If you don’t like this badge being displayed on your site, Google permits you to hide the reCAPTCHA badge but you have to add reCAPTCHA’s privacy policy to your site’s privacy policy.
To hide this you have to add Custom CSS like the one displayed below.
.grecaptcha-badge {
visibility: hidden;
}
If reCAPTCHA v3 is not working and you are still getting spam messages in your Contact Form 7, you can still go back to reCAPTCHA v2 which requires an “I’m not a robot” checkbox validation to stop spam bots.
If you want to have a check in which users can click “I am not a robot”, you would need to add reCAPTCHA v2.
Since Contact Form 7 does not support, you have to install an add-on called ReCaptcha v2 for Contact Form 7 which is a contact form 7 anti spam plugin. After installing it will add an option to Contact Form 7’s dashboard menu named as “reCAPTCHA version”.
Here's a list of amazing tools to convert CSV files to PDF format: Sheetlore Sheetlore…
Are you looking for a membership plugin for your WordPress site? Do you want to…
Alright, team, let's break it down like this: SOPs, or Standard Operating Procedures, are our…
Hey, fellow world crafters and lore legends! If you've ever lost yourself in the rabbit…
Hey Game Devs and Design Aficionados, Today, let’s deep-dive into the holy grail of game…
Imagine your website as a vast library that has a plethora of books, each containing…