/
/
Wordpress education
/
How to add reCaptcha to Contact Form 7 in WordPress

How to add reCaptcha to Contact Form 7 in WordPress

How to add reCaptcha to Contact Form 7 in WordPress

How to protect the form on the site from spam ?

Learn what reCaptcha is and why you should easily install a mechanism in the v3 version that doesn't make life difficult for users i.e.: it doesn't force users to click images to confirm authenticity. See how Google's reCaptcha integration in Wordpress for the popular Contact Form 7 forms plugin.

Table of Contents:

What is reCaptcha V3 ?

Form security on a Wordpress site. Learn about reCaptcha v3.

If you have a website then an integral part of it are contact forms placed in the form of short sections on the most important sub-pages, e.g.: landingpage type and in the contact sub-page. The reCaptcha security from Google intelligently detects spam and helps protect against mass spamming by robots or bots.

The predecessor to the automated version was V2, which forced the user to guess simple images and search them by key to confirm the authenticity of the message being sent. After checking the 'I'm not a robot' option, an additional box popped up to select, for example: cars, mountains or street crossings on a checkerboard of images. This was quite inconvenient and impractical.

ReCaptcha security from Google

Changes in v3 version of reCaptcha

With the introduction of the latest version, the script runs automatically and in the background. It detects user behavior and evaluates whether a form is sent by a robot or a real user.

We take care of websites on Wordpress. See what we can do

Check out our wordpress care and wordpress website development services

Jak zabezpieczyć formularz na stronie Wordpress przy zastosowaniu Contact Form 7 ?

Najpopularniejszym rozwiązaniem stosowanym do tworzenia formularzy na stronach w Wordpress jest wtyczka Contact Form 7. Integracja ze stroną jest dość prosta, a wszelkie rozszerzenia wtyczki Contact Form 7 opisaliśmy również na naszym blogu. CF7 zapewnia również prostą integrację reCaptcha v3 poprzez wprowadzenie kluczy API z Google.

Generating a reCaptcha API key

The first step is to go to google.com/recaptcha/admin where the appropriate key is generated. If you are installing the mechanism for a new page, you should click on the + icon at the top of the page to add a new security feature.

Google reCaptcha panel after login. Visible numbers of requests and suspicious form submission attempts

In the API key generation form, we fill in the fields one by one :

Label - this is the best place to enter the name of your site

Type of reCaptcha - we choose the v3 version

Domains - add the address of the site to be secured

We accept conditions.

Introduction and addition of reCaptcha

After entering the data, keys will be generated which then need to be copied into the reCaptcha integration form in wordpress

Generating API keys in Google reCaptcha

See also how to start a blog on wordpress

Introducing reCaptcha keys in Wordpress

After registration you will receive two keys i.e.: secret key and private key, which you will need to enter in your Wordpress under Forms - integrations.

Introducing API keys to Contact Form 7 in Wordpress

Introducing API keys in Wordpress

This way we will easily and quickly secure a form on the website convenient for the user and protect. us from a lot of spam sent by robots.