How to Add a reCaptcha to Contact Form 7

This tutorial explains how you can easily add a reCaptcha to your Contact Form 7 Forms and why it's useful for spam reduction on your website.

In this article we’re going to take a look at how to add a reCaptcha to your Contact Form 7 forms.

Firstly let’s quickly cover the purpose of reCaptcha. This handy tool provided by Google allows you to easily and effectively implement spam protection across your forms and website.

There are two different versions of reCaptcha V2 and V3. Contact Form 7 Integrates with V3, this is important to know as when you set your API keys up you will need to be sure to select V3. 

Integrating reCaptcha

The first step is to select Integration within the Contact Form 7 menu. So hover over the Contact Form 7 plugin within the left menu in WordPress and you will see the integration option.

Once this page is open select reCaptcha integration out of the integrations list. The install process will then ask you for your site key and your secret key. These need to be setup in your Google account.

Firstly ensure that you’re logged into the Google account that you would like to have hold the reCaptcha keys and that it is readily accessible.

Then head over to this link: https://www.google.com/recaptcha/admin/create

Within this page enter a label, this should describe your reCaptcha purpose for example, [Website Name] Spam Protection.

Then select V3.

You then need to add your domain name, this is the domain that the reCaptcha will feature on e.g. yourwebsite.com.

Then complete the rest of the setup form, it should ask you to read terms and conditions, check policies and confirm your notification preferences.

You will then be given your site key and your secret key. These need to be added to the relevant boxes on your site within the contact form 7 setup section. 

Adding the reCaptcha to Your Contact Forms:

The next step once you’ve integrated the reCaptcha Setup is to add them to your forms. Head over to the section where you edit your forms and click on each form individually.

As long as reCaptcha is integrated fully you will see the option to add it to the form in the toggles at the top. Click this and it will generate a shortcode. Ideally you should add this to the bottom of your form.

Further Reading

Contact Form 7 Setting the Submit Button Hover Styles

Summary:

That’s it, a quick and easy integration to ensure that your forms remain relatively spam free. If you found this useful we’d really appreciate and comments and a share thanks!

Tech Typed
Tech Typed
Articles: 186

Leave a Reply

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