Add Google reCaptcha to Contact Form 7 in WordPress

To prevent spam Google offering an improved, user-friendly Captcha system which help in prevent auto spammer request.

in WordPress website, blog most of using Contact Form 7 to build Contact Form and Contact Form 7 is become one the most popular contact form plugin for WordPress.

By combining the two, Google reCaptcha and Contact Form 7 you can easily create contact forms with antispam protection.

In this article, I’m going show you how to integrate Google reCaptcha to Contact Form 7 in your WordPress site.

Step 1 – Install the Contact Form 7 plugin

– If Contact Form 7 plugin not added / activated in your website than goto Wp-admin > Plugins > Add new, search for “Contact Form 7”
Click “Install Now” and activate the Contact form 7 wordpress plugin.

Step 2 – Get the reCaptcha public and secret keys

To integrate reCaptcha you need to generate Public and Secret keys for reCpatcha on Google Platform
– to Generate key Go to the Google reCaptcha site.
– Click on “Get reCAPTCHA” button.

Step 3 – Integrate reCaptcha with Contact Form 7

Inside your WordPress Wp-admin side:
Go to Contact > Integration
Copy paste Site key and Secret key you generated in Step 2

Step 4 – Add reCaptcha to Contact form

Go to Contact > Contact forms > Click on Edit link for Form in which you want to set Captcha
Add [recaptcha] code on position where you want to show reCaptcha selection field. mostly reCaptcha field just before the submit button.

Done – View Page in which you added Contact form 7 shortcode

Leave a Comment

Scroll to Top