Home » Support » Help Articles » Add reCAPTCHA to Contact Form 7 in WordPress

Add reCAPTCHA to Contact Form 7 in WordPress

Back to Help Articles Home


Google reCAPTCHA is a free service to protect your website from spam and abuse, letting real people pass through with ease. Contact Form 7 is the most popular contact form plugin for WordPress. Combining these two, you can easily create WordPress contact forms with antispam protection. In this article, we shall guide you through how to integrate reCAPTCHA to Contact Form 7 in your WordPress website.

Note: It is assumed that you have created a Contact Page with Contact Form 7 in WordPress.

Get the reCAPTCHA public and secret keys

To get started with reCAPTCHA, you need a Google account and to register your website for an API key pair. To generate reCaptcha public and secret keys for your domain name, follow the steps mentioned below.

  1. Go to the Google reCaptcha website.

    Figure One

  2. Click the "Get reCAPTCHA" button as shown above.
  3. Enter your website details such as "Label, Domain and Email Owner(s)" and click on the "Register" button as shown below.
  4. Figure Two

  5. Upon doing so, you can see the generated "Site Key" and "Secret Key" as shown below.
  6. Figure Three

  7. Copy the key pair into the WordPress Dashboard of the website you registered.

Integrate reCaptcha with Contact Form 7

To integrate reCaptcha with Contact Form 7, follow the steps mentioned below.

  1. Go to the WordPress Dashboard menu "Contact>Integration" as shown below.
  2. Figure Four

  3. Find reCAPTCHA panel and click "Configure Keys" as shown below.
  4. Figure Five

  5. Enter the "Site Key" and "Secret Key" into the fields and save them as shown below.
  6. Figure Six

Edit the Contact Form

To put a placeholder for a reCAPTCHA widget into your contact form content, follow the steps mentioned below.

  1. Paste the shortcode [recaptcha] to render the reCaptcha field just before the submit button as shown below.
  2. Figure Seven

  3. Click the "Save" button as shown above.
  4. Preview the contact page. It should look like the one shown below.
  5. Figure Eight



Updated on Oct 29, 2016

The techReview is an online magazine by Batoi and publishes articles on current trends in technologies across different industry verticals and areas of research. The objective of the online magazine to provide an insight into cutting-edge technologies in their evolution from labs to market.

Visit techReview


English - IN (USD)
New Users? Signup.     Existing Users? Login.