How Gravity Forms Zero Spam works (and how to test it)
Gravity Forms Zero Spam stops automated form submissions without a CAPTCHA or any other step for your visitors. It relies on a signed token that a real browser adds to the form.
How the token check works #
When a visitor clicks the submit button, the Zero Spam script asks your site for a new token and adds it to the form as a hidden field. Before it saves the entry, your site checks the token. A submission without a valid token is saved as spam, with a note on the entry that gives the reason.
The page also holds a backup token, made when the page was built. The script sends the backup when the request for a new token fails or takes longer than its wait time, 3 seconds by default. A visitor never waits longer than that.
Both tokens stay valid for the Anti-Spam Expiration time in the Zero Spam settings, 7 days by default. A backup token expires only on a page older than that, such as a copy that a page cache built days earlier. That page is flagged only when the request for a new token also fails, and Troubleshooting Gravity Forms Zero Spam shows how to fix it.
Any submission that arrives without a token is flagged, such as data a bot posts straight to your site. The token holds the form ID, the time it was issued, its expiry, and a random value, signed with your site’s secret keys. Zero Spam sets no cookies and adds no field your visitors can see.
Form data Zero Spam reads or sends #
- The token check reads only the token. The words in a message never decide whether it passes.
- Email Rejection Rules compare the addresses typed into email fields with your rules, and AI Spam Review sends submissions to the AI service you connect. Both are optional and stay off until you turn them on. AI Spam Review is the only part of Zero Spam that sends form data off your site.
- Spam report emails list how many spam entries each form received, with a link to them. They hold none of the submitted data.
- Marking an entry as spam or not spam has no effect on how Zero Spam checks later submissions.
Submissions Zero Spam skips #
Zero Spam lets these submissions through without a token:
- Submissions from people signed in with permission to edit entries. Unless a role editor plugin gives other roles that permission, only administrators have it, so WordPress editors are checked like visitors.
- Entries created through the Gravity Forms API, such as those that other plugins and apps add.
- Forms with Prevent spam using Gravity Forms Zero Spam turned off in the form’s Spam Detection settings.
A test you send while signed in as an administrator goes through even with JavaScript turned off.
Test the check on your site #
The check catches submissions sent without the page’s JavaScript, so the test sends one that way.
- Open the form’s page in a private browser window, where you aren’t signed in to WordPress.
- Fill in the form and submit it. The entry appears in the form’s entries.
- Turn off JavaScript for your site in the browser’s settings. Reload the page, fill in the form again, and submit it.
- In your WordPress dashboard, go to Forms, then Entries, choose the form, and click Spam above the list.

The second test entry is in the list. Open it, and its Notes box reads “This entry has been flagged as spam. Reason: The submission did not include a spam prevention token.”
After a flagged submission, the page shows Gravity Forms’ default message unless the form has Custom Spam Confirmation turned on. The default message is “Thanks for contacting us! We will get in touch with you shortly.”
Turn JavaScript back on, and delete the test entry when you’re done. Clicking Not Spam on it would run the form’s add-on feeds for it, except payment feeds, so the entry would reach the services those feeds connect.
Spam that gets through #
Bots that load your page in a real browser run the Zero Spam script and get a token like any visitor. AI Spam Review reads submissions that passed and flags the ones that look like spam. The Shield silentCAPTCHA integration adds the bot detection of the Shield Security plugin as another check.