How To Add CAPTCHA In Your WordPress Forms To Stop Spammers

CAPTCHA helps you to stop spammers from filling out your forms. Humans can easily solve this but it is difficult for bots and automated software to figure out.

You can add Google reCAPTCHA or add Custom CAPTCHA in your WordPress forms. Here I will show you both, how to add Google reCAPTCHA and Custom CAPTCHA on your WordPress forms.

How to add CAPTCHA in your WordPress forms

For this tutorial, we are using WPForms, which is the most popular and advanced form building plugin for WordPress.

With WPForms, you can easily add CAPTCHA to your WordPress forms. And it is a drag and drop contact form plugin, so, you don’t need to worry about knowing coding knowledge.

WPForms lets you create advanced forms like multi-page forms, survey forms, file upload forms, donation forms, order forms, etc.

WPForms has two versions: free and paid. If you want to create a simple contact form and only use Google reCAPTCHA, then you don’t need to buy their paid plan.

But if you want to add Custom CAPTCHA on your forms. Then you need to buy their paid plan which starts at $39/year.

Also, with their paid plan, you’ll get lots of advanced features.

So, click the link below to buy WPForms and get the maximum discount possible:

Multipage Forms, Condition Logic
Entry Management, Drag & Drop
PayPal, Stripe, Zapier, Mailchimp
Login, Registration, AWeber Form
Geolocation, Signatures, File Upload

How to add Google reCAPTCHA on your WordPress forms

Google reCAPTCHA is a free service from Google which helps to protect websites from spam and abuse. I will show you how you can use Google reCAPTCHA on your WordPress form and protect your forms.

Step- 1. Know about reCAPTCHA and their types

reCAPTCHA is a free spam protection service provided by Google. You can add three types of reCAPTCHA in WPForms.

Type- 1. reCAPTCHA v2 (“I’m not a robot” Checkbox)-

Here the user must check the box and confirm that they are human.


This will either pass the user without a CAPTCHA or show them a CAPTCHA to verify whether they are human or not.

Type-2. reCAPTCHA v2 (Invisible reCAPTCHA badge)-

This type of reCAPTCHA doesn’t contain any checkbox. Just a badge added to the bottom right side of the page.

reCAPTCHA v2 Invisible

In some cases, this will show image-based questions directly when the user clicks on the submit button.

Type- 3. reCAPTCHA v3-

This type of reCAPTCHA doesn’t show any boxes or badges, it runs in the background.

If you add this type of reCAPTCHA, Google will monitor the user behavior of your site. Every user who wants to submit a form, Google will give them a score, if the score doesn’t match your decided score(you will need to decide a score to allow your forms to submit), they will have no way to submit your form.

If you running AMP on your site, you can use this type of reCAPTCHA.

Step- 2. Generate Site and Secret Key

To create site key and secret key, go to Google’s reCAPTCHA page, click Admin console and login to your Google account.

If you have set up a reCAPTCHA with your google account in the past, then you need to click + icon to add a new site.

Google reCAPTCHA add a new site button

If you never set up Google reCAPTCHA before, you’ll be redirected to ‘register a new site page’.

Google reCAPTCHA register a new site page

a. Put a name, like your name, your website name (recommended).

b. Select the version of reCAPTCHA you want to use, WPForms’ recommendation is to use reCAPTCHA v2 (Invisible reCAPTCHA badge).

c. Enter the URL of your website(Just put your website name, don’t use https://, http://, www.), like

d. Accept the reCAPTCHA Terms of Service and click SUBMIT.

After registering your site, you should see this type of page with your SITE KEY and SECRET KEY.

Google reCAPTCHA Site Key and Secret Key page

If you are using AMP, then you’ll need to do some extra adjustments. To do that click GO TO SETTINGS underneath your keys and select Allow this key to work with AMP pages, then click Save.

Google reCAPTCHA AMP settings page

Step- 3. Add reCAPTCHA to WPForms

To add reCAPTCHA in WPForms, login into your WordPress dashboard, go to WPForms > Settings, and click reCAPTCHA

Open reCAPTCHA settings in WPForms

a. Choose the version of reCAPTCHA you want to use(same version as you select in ‘register a new site’ page).

b. Put your Site Key and Secret Key.

c. If any user doesn’t pass the reCAPTCHA test, which message you want to show them.

d. Sometimes reCAPTCHA loaded more than once on your site (for example, by both WPForms and your WordPress theme), this can prevent reCAPTCHA from working properly. If you enable this, it removes any reCAPTCHA code that’s not loaded by WPForms.

Don’t enable this. However, we highly recommend getting in touch with the WPForms support team if you’re in at all unsure whether to use this option.

In the end, don’t forget to save this.

If you use reCAPTCHA v3, then you need to select Score Threshold.

Additional settings for reCAPTCHA v3 in WPForms

At which score you want users to fail reCAPTCHA v3’s verification. Scores can range from 0.0 (very likely a bot) to 1.0 (very likely a human).

To add reCAPTCHA in your forms, create a new form or edit your existing form. Click the reCAPTCHA widget and click OK. Don’t forget to SAVE this.

reCAPTCHA standard field in WPForms

Now look at the top right corner of your form builder and you will see a reCAPTCHA tag is enabled.

To confirm that your reCAPTCHA is enabled, go to your contact form page and check reCAPTCHA is enabled or not?

Now you have successfully added Google reCAPTCHA in your WordPress Forms using WPForms. Now let’s see how you can add Custom CAPTCHA on your WordPress forms.

How to add Custom CAPTCHA on your WordPress forms

If you are not already buying WPForms, please do it first. Because without their paid version, you can not create Custom CAPTCHA for your WordPress forms.

Step- 1. Install the Custom Captcha Addon

For using Custom CAPTCHA on your WordPress forms, you need to install the Custom Captcha Addon. To do that, simply click on WPForms > Addons and install the Custom Captcha Addon.

With this addon, you can define custom questions or use random math questions as CAPTCHA to fight spam form submissions.

Step- 2. Add Custom CAPTCHA to WPForms

Create your form or edit your existing form where you want to add Custom CAPTCHA to protect your form from spammers.

Now click on the Captcha field to activate the Custom Captcha Addon.

wpforms custom captcha field

After doing that, you will see a popup where you need to click on the Yes, Install and Activate button. and after that click on Yes, Save and Refresh.

WPForms install and activate custom captcha addon

Your Custom Captcha Addon will now successfully installed and activated.

Step- 3. Customize your Custom CAPTCHA

Drag and drop the Captcha field from left to right to add Custom CAPTCHA on your form.

By default, the field will automatically show a random math question to the users who want to submit the form.

You can change the custom captcha type to Question and Answer. To do that, click on the Captcha field and on your left change the type to Question and Answer.

Then enter the question you want you to show your users and also enter the answer. If you want to show different questions and answers every time your page loads or refreshes, then click the plus (+) icon and enter your question and answer.

In the end, don’t forget to save all the changes by hitting on the Save button.

Now you have successfully added Custom CAPTCHA in your WordPress Forms using WPForms.

In the same way, you can add CAPTCHA to all types of forms that are created with WPForms.

Also, read how to send confirmation emails to users after submitting a form to helps the users to know is their form is submitted or not.

Frequently Asked Questions (FAQs)

Is reCAPTCHA available on WPForms Lite?

Yes, Google reCAPTCHA is available on WPForms Lite.

If you have any questions about this article you can ask in the comment section below. And if you like this article, don’t forget to share it with your friends and family. Thanks for reading this article.

Newsletter Updates

Get freebies, and special offers delivered directly to your inbox.

Leave a Reply

Your email address will not be published.