How to Add Google reCAPTCHA to an Enquiry Form

Google’s reCAPTCHA allows users to confirm they are human without having to solve or enter a CAPTCHA code.

Instead with just a single click users can confirm they are not a robot.

See Google’s Security Blog for more details about reCAPTCHA.

Google reCAPTCHA

Many of the steps below can be applied to implementing Google’s reCaptcha on any website enquiry form. However, we are using the Contact Form 7 WordPress plugin for this example.

Contact Form 7 is a widely used form to email plug-in that supports Google reCAPTCHA and is simple to implement.

Register reCAPTCHA for your Website

  1. Visit https://www.google.com/recaptcha and click the Get reCAPTCHA button.
    You will need to sign-in or create a new Google account.
  2. Under the Register a new site section:
    • Add a Label that identifies the site.
    • Add all the Domains where reCAPTCHA will be used e.g. mywebsitename.com.au.
    • Click the Register button.
    reCAPTCHA Register
  3. Details for the reCAPTCHA should be displayed including your Site Key and Secret Key.
  4. Access your WordPress dashboard in a new browser tab and navigate to Contact > Integration.
  5. Click Configure Keys.
  6. Copy and paste the provided Site Key and Secret Key from reCAPTCHA.
    reCAPTCHA Keys
  7. Click the Save button.

Add reCAPTCHA to your Enquiry Form

  1. In your WordPress dashboard navigate to Contact > Contact Forms.
  2. Click the form you wish add reCAPTCHA to.
  3. Place your cursor in form editor window where you would like to add the reCAPTCHA element.
  4. Click the reCAPTCHA button just above the editor window.
    reCAPTCHA Add
  5. In the modal window select your appearance options, then click the Insert Tag button.
  6. Click the Save button.