Handling Spam with Ninja Forms

To fight spam form submissions from being submitted through your forms handled by Ninja Forms, we can setup reCAPTCHA and/or Anti-Spam.

Setup reCAPTCHA

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse. It is easy for humans to solve, but hard for “bots” and other malicious software to figure out.
To setup reCAPTCHA login to your WP Admin dashboard and select  Ninja Form s > Settings

You'll ned to enter in your reCAPTCHA Site Key, reCAPTCHA Secret Key and reCAPTCHA Language.
Ninja Forms currently uses reCAPTCHA v2 with support for reCaptcha v3 on the horizon.
Your reCAPTCHA Site Key and Secret Key can be retrieved by visiting Google’s reCaptcha admin page here.
Fill in the Label
Select reCAPTCHA type as reCAPTCHA v2 and choose "I'm not a robot" Checkbox.
Add your site's domain.
Confirm your email address is correct.
Accept the reCAPTCHA Terms of Service
Then hit Submit.

You'll receive the Site Key and Secret Key.

Copy the Site Key and Secret Key in the corresponding fields and enter en for the language inside of Ninja Forms settings like this:

Hit Save Settings at the bottom of the page.

Now, Click Dashboard under Ninja Forms and click on the cog button of the form you would like to add reCAPTCHA, and click on edit. In here, we are using Contact as an example.

 Click on the + sign on the bottom right of your screen.

Scroll down on the right side of the screen and click and drag Recaptcha to the left of the screen, right above Submit.

Once done, click on DONE, then Publish.

Setup Anti-Spam

You can setup an Anti-Spam field and pose a simple question for the form submitter to answer. In order for the form to be submitted, it will require the correct answer from the form submitter.


Click on the cog button of the form you would like to add Anti-Spam, and click on edit. In here, we are using Contact as an example.

 Click on the + sign on the bottom right of your screen.

Scroll down on the right side of the screen and click and drag Anti-Spam to the left of the screen, right above Submit.

Mouse over the Anti-Spam area and a cog button will appear. Click on it.

Create a simple question and answer. It can be something like What is 7 plus 3 and the answer would be 10.

Once done setting up your question and answer, click on Done, then Publish

Still need help? Contact Us Contact Us