Categories
WordPress

How to add Google reCAPTCHA on WordPress using a plugin

Introduction

These instructions explain how to add Google reCAPTCHA on WordPress using the Contact Form 7 plugin. This will help to prevent the contact forms on your site from generating spam.

Requirements

  1. WordPress with the Contact Form 7 plugin (version 5.1 or above) installed. If you don’t already have this installed, see How to add a contact form to WordPress using a plugin.
  2. reCAPTCHA Site Key and Secret Key. If you don’t already have these, see How to register your site with Google reCAPTCHA.

Skill Level

Basic knowledge of WordPress.

More Info

Contact Form 7 reCAPTCHA (v3) guide: https://contactform7.com/recaptcha/

Instructions

Time needed: 5 minutes.

  1. Log into WordPress Admin.

    This is usually accessed via yourdomain.com/wp-admin.

  2. Go to the Contact Integration page.

    Click Contact then Integration in the main menu.Contact drop down and Integration option - screenshot

  3. Start the reCAPTCHA setup.

    In the reCAPTCHA section, click the Setup Integration button.Setup Integration button in reCAPTCHA section - screenshot

  4. Enter the reCAPTCHA details.

    In the Site Key and Secret Key fields, enter the keys that were created when you registered the site on reCAPTCHA.
    Click Save Changes.Site Key and Secret Key fields and Save Changes button - screenshot