Troubleshooting Gravity Forms Zero Spam
When Zero Spam flags a submission, it adds a note to the entry that gives the reason, so the note is where to start. Before you change anything else, update Zero Spam to its latest version, since recent releases fixed several causes of wrongly flagged submissions.
Find out why an entry was flagged #
- In your WordPress dashboard, go to Forms, then Entries, and choose the form.
- Click Spam above the entries list.
- Click the entry’s name to open it, and read the note in its Notes box.

The name above the note is the check that flagged the entry.
A note that flags the entry starts with “This entry has been flagged as spam. Reason:”. In a note from Zero Spam, one of these reasons follows.
| Reason | What happened |
|---|---|
| The submission did not include a spam prevention token. | The form was sent without the Zero Spam script running. Bots send forms this way, and so does a page where something stopped the script. See Fix a missing token. |
| The spam prevention token has expired. This may be caused by page caching. | The request for a new token failed, and the backup token in the page was older than the Anti-Spam Expiration time. See Fix an expired token. |
| The spam prevention token signature is invalid. | The token wasn’t signed with your site’s current secret keys, the AUTH_KEY and SECURE_AUTH_KEY values in wp-config.php. Forged tokens fail this way. If you changed those keys, clear your page cache. |
| The spam prevention token format is invalid. | The token field held something other than a Zero Spam token, as when a bot makes up the field. |
| The spam prevention token was issued for a different form. | The token belongs to another form on your site, as when a bot copies the field from one form to another. |
| Legacy spam prevention key no longer accepted. Please clear your page cache. | A cached page sent an old-style key. A site that still stores an old key accepts it for 14 days from the first submission that uses it, and this one was later. Clear your page cache. |
| The submitted key is invalid. | A cached page sent an old-style key that your site doesn’t have stored. Clear your page cache. |
Fix a missing token #
When real submissions get this note, something stopped the Zero Spam script before the form was sent. Look for these:
- An optimization or caching plugin that delays, defers, combines, or minifies JavaScript. Exclude the file
gf-zero-spam.jsand the inline script that definesgfZeroSpamConfigfrom those options, clear the cache, and send a test. - A consent tool or browser extension that blocks scripts on the page.
- Custom code that posts the form’s fields with its own request. Zero Spam adds the token only when Gravity Forms submits the form.
Fix an expired token #
The script sent the backup token from the page because the request for a new token failed or took longer than its wait time, 3 seconds by default. That backup had passed the Anti-Spam Expiration time, which happens when a page cache serves a copy built days earlier. When the request works, a page of any age passes, because the token comes from that request.
Start with the request:
- Open the form’s page in a private browser window, with the browser’s developer tools open on the Network tab.
- Turn on Preserve log in the Network tab, so the list stays when the form’s page reloads.
- Submit the form, and find the request to
admin-ajax.phpwhose action isgf_zero_spam_token. It should answer with status 200 and a token.
Look for these causes of a failing request:
- A security plugin, firewall, or server rule that blocks
admin-ajax.phpfor visitors who aren’t signed in. - A server that takes longer than the wait time, 3 seconds by default, to answer.
- More than 30 token requests a minute from one address, which your site answers with status 429. Behind a proxy or CDN that hides visitors’ addresses, every visitor can count as the same address.
A developer can change the wait time with the gf_zero_spam_token_fetch_timeout filter. For the last cause, a developer can pass the visitor’s real address with the gf_zero_spam_client_ip filter or raise the limit with gf_zero_spam_rate_limit.
Then make backup tokens last longer than your page cache keeps a page:
- Go to Forms, then Settings, and click Zero Spam.
- Under Spam Blocking, set Anti-Spam Expiration to a time longer than your cache keeps a page, up to 90 days.
- Click Save Settings.
- Clear your page cache. Pages cached earlier keep backup tokens with the old time.

Restore an entry flagged by mistake #
Gravity Forms keeps flagged entries under Spam in the form’s entries list. While an entry is there, Gravity Forms sends none of its notifications and runs none of its add-on feeds.
- Go to Forms, then Entries, choose the form, and click Spam above the list.
- Hover over the entry and click Not Spam.

Not Spam moves the entry to the form’s active entries and runs the form’s add-on feeds for it at that moment, except payment feeds. Notifications stay unsent. To send one, open the entry, select the notification in the Notifications box, and click Resend.

The person who sent a flagged submission saw Gravity Forms’ default message, “Thanks for contacting us! We will get in touch with you shortly.”, in place of your confirmation. To choose what flagged submissions see, turn on Custom Spam Confirmation in the form’s Spam Detection settings and set the message in the form’s Confirmations.
Missing spam report emails #
Go to Forms, then Settings, click Zero Spam, and check Spam Report Frequency under Spam Report Email. Zero Spam sends a report only when new spam entries have arrived since the last one.
- Threshold-Based sends the report with the submission that brings the count of new spam entries to the Spam Entry Threshold.
- Twice Daily, Daily, Weekly, and Monthly reports run on WP-Cron. As the settings page notes, they may not go out on schedule on a site with little traffic. If your host turns WP-Cron off and no server cron job runs in its place, they never go out.
To check email delivery, click Send Email & Save Settings. It saves the settings and sends a test report the way WordPress sends its other email. If the test doesn’t arrive, look at the site’s email setup.

Spam still gets through #
Bots that load your page in a real browser run the Zero Spam script and get a valid token. These optional checks catch what the token check misses:
- AI Spam Review reads submissions that passed and flags the ones that look like spam.
- Shield silentCAPTCHA adds the bot detection of the Shield Security plugin.
- Email Rejection Rules block or flag the email addresses and domains you choose.