Last updated on June 14, 2023 by Njones35

How To Add a Captcha to WordPress Contact Forms

We're just like you. We only want humans to fill out our forms. Add a Google reCAPTCHA to your WordPress contact forms to stop those bots!

How to Add a Captcha to WordPress Contact Forms

Approximate read time: 4 minutes

Did you get a boost in your form submissions? Are you getting spam messages in your WordPress contact forms? Sometimes spam can look a lot like a growing audience. What a bummer! ๐Ÿ˜ž

You need a spam solution for your WordPress website.

Luckily, it's easy to create an attractive, user-friendly WordPress form that kicks spam to the curb. The form we're building today uses reCAPTCHA to block spambots without wrecking the user experience.

There are a lot of dedicated spam plugins for WordPress ๐Ÿ”Œ, but today we're going to show you a solution that has reCAPTCHA v2 built in. Yeah, we're talking about the most advanced WordPress form builder, Formidable Forms!

Formidable is comparable to any contact form plugin out there โ€” plus it does a whole lot more. You can build contact forms, registration forms, and any other form you need with a reCAPTCHA section at the bottom.

What is reCAPTCHA?

ReCAPTCHA is a free spam-killing service from Google, designed to protect your site from spam ๐Ÿ›ก๏ธ. A captcha is a test to tell if the page viewer is really human, or an evil spambot. It's the famous robot checkbox we've all grown to love.

Of course, it is easy for humans to solve, but hard for bots to figure out. An integrated reCAPTCHA in your contact forms will block automated software but let real people contact you with ease.

All you need is a Google account and some API keys to install it with Formidable Forms.

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Build your WordPress contact form

reCaptcha WordPress form builder

ReCAPTCHA doesn't require any advanced planning or custom code. Build your form as you had originally intended. It doesn't matter if it's a simple contact form or a complex quote calculator. It's easy to add a captcha to any and all forms ๐Ÿ‘.

So go ahead, build a form, and tweak it until it's perfect. Then add reCAPTCHA protection at the end. That's right, it works like any other form field!

Now, we'll show you how to add captchas in WordPress forms.

Add a captcha to contact forms in WordPress

Protecting your form couldn't be easier! Formidable includes a reCAPTCHA field that can be added in the same way as a number field or text field. Add it to your form with just one click.

If this is the first time you've added reCAPTCHA to a Formidable form on your website, you'll also need to get Site and Secret Keys from Google.

This is completely free and takes only two minutes to set up.

Go to Formidable โ†’ Global Settings to enter your keys ๐Ÿ”‘. Click the link in your settings to sign up for a free reCAPTCHA key, and signup with your Google account.

add Captcha to form - WordPress account link

Enter your website URL and pick a title. That's it!

Google will give you a Site Key and a Secret Key. Copy and paste these into your Formidable settings and click Update Options and you're set!

Who knew it was this easy to register your site with reCAPTCHA?

How reCAPTCHA works

Now that you know how to add reCAPTCHAs to contact forms in WordPress, let's take a look at how they work ๐Ÿ”Ž.

ReCAPTCHA is really a clever system. And there's even an invisible reCAPTCHA now that makes verifying your humanity even easier!

We're already a long way past the frustrating, complex strings of random blurred letters that the old captchas relied on. Thank heavens! That method was tedious, complex, and often just as hard for us as they are for the spambots ๐Ÿค–.

I imagine one day using them in a story to my grandkids about how tough we had it in "the good old days"!

Example of hCaptcha "I am human"

Now, captcha spam protection is a simple checkbox.

Click the box, and most of the time, you'll see a green checkmark. โœ…

Congratulations! You've passed the robot test (yes, it's that easy). Your website visitor can submit the form with no hassle and no delay.

And by the way, if you're wondering what's the difference between captcha and reCAPTCHA โ€” there isn't any! ReCAPTCHA is just the name Google gave to their version of a "captcha".

WordPress recaptcha image verification

Sometimes reCAPTCHA isn't convinced and will need some extra info to make sure you're human and not a robot.

You may be asked to solve a simple picture-based challenge. Even this extra challenge is user-friendly, quick, and has minimal impact on user experience.

reCAPTCHA accessibility

Protecting your form should never limit who can complete it.

You'll be glad to know that reCAPTCHA works with major screen readers such as ChromeVoxJAWSNVDA, and VoiceOver.

It will alert screen readers of status changes, such as when the reCAPTCHA verification challenge is complete.

The status can also be found by looking for the heading titled "recaptcha status" in the "recaptcha widget". More information on accessibility can be found in Google's official reCAPTCHA guide.

reCAPTCHA styling

Enhance your reCAPTCHA visibility with either the light or dark color scheme to best suit your site design ๐ŸŽจ.

Form reCAPTCHA Styling light and dark

Are you working in a widget with a small amount of space? Use the compact option to limit the reCAPTCHA size and you're good to go.

Other ways to stop spambots

Form Math captcha WordPress plugin

Not a fan of reCAPTCHA? Did you know reCaptcha can be invisible too?

Looking for a captcha-free alternative? Akismet is built right into Formidable Forms, and so is honeypot spam protection. There's also Cloudflare Turnstile in WordPress, which is a free Captcha alternative.

Or take matters into your own hands and fill your WordPress comment blocklist โ›”.

WordPress reCAPTCHA for the win

Spambot protection is an essential part of modern WordPress contact forms. The best WordPress form builders should not only include it standard, but also make it really easy to use.

We've made Formidable Forms easy to protect, regardless of whether you're building brand new contact forms or adding invisible WordPress spam protection to existing forms.

Now that you know how to add reCAPTCHA to WordPress contact forms, why not check out some of our other WordPress tips?

It's all live on the Formidable Forms blog.


Not using Formidable Forms on your WordPress site? Check out the free version that includes Akismet, honeypot, and CAPTCHA.



This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms