Add Google Recaptcha to Contact form 7

Add Google Recaptcha to Contact form 7

Here’s how to add Google reCAPTCHA to Contact Form 7 in a few simple steps:

Step 1: Install and Activate Contact Form 7

  1. Go to Plugins > Add New in your WordPress dashboard.
  2. Search for Contact Form 7.
  3. Install and activate the plugin.

 

  1. Go to the Google reCAPTCHA site.
  2. Sign in with your Google account.
  3. Register your website by providing:
    • Label: Name for your site.
    • reCAPTCHA Type: Choose reCAPTCHA v3 (for invisible).
    • Domains: Add your website domain (e.g., yourdomain.com).
  4. Accept the reCAPTCHA terms and click Submit.
  5. After submission, you’ll receive a Site Key and a Secret Key.

Step 3: Add reCAPTCHA Keys to Contact Form 7

  1. In your WordPress dashboard, go to Contact > Integration.
  2. Under reCAPTCHA, click Setup Integration.
  3. Enter the Site Key and Secret Key from Google, then click Save.

Step 4: Add reCAPTCHA to Your Form

  1. The integration will automatically enable reCAPTCHA on all your Contact Form 7 forms.
  2. No need to manually add any shortcode—reCAPTCHA is now protecting your forms.

Step 5: Test the Form

Submit your Contact Form 7 form and ensure that reCAPTCHA is working in the background to prevent spam submissions.

That’s it! You’ve added Google reCAPTCHA to Contact Form 7 in WordPress.

capital

Leave a Reply