r/webdev • • 18h ago

Discussion Security Verification Failed

Post image

Hi all, I'm running a WordPress site hosted on GoDaddy with SureForms (2.14.3) for an event registration. Most submissions go through fine, but some students intermittently get:

Security verification failed. Please refresh the page and try again.

What I already have in place:

  • A snippet (JJJKS NO Cache) hooking send_headers on non-admin requests to define DONOTCACHEPAGE (true) and call nocache_headers().
  • Honeypot security enabled in SureForms (Settings → Spam Protection → Honeypot).

What I'm trying to figure out:

  • Why are only some students hitting this verification failure while hundreds of others submit successfully ?
  • Could this be coming from GoDaddy server/edge caching, WordPress Object Cache, stale nonces on tabs left open/opened via mobile in-app browsers (like WhatsApp), or honeypot/security checks?
  • What is the most reliable way to fix permanently ?

Any debugging tips or things to check in SureForms, WordPress, or GoDaddy would be really appreciated!

0 Upvotes

14 comments sorted by

View all comments

1

u/SiliconMachine 13h ago

the fact that it's some students and not all points at time more than at the cache. if sureforms is checking a wordpress nonce, a nonce for a logged out visitor is only good for 12 to 24 hours, so someone who opened the link from whatsapp yesterday and fills it in today gets exactly that error. easy to test: open the form, leave the tab overnight and submit in the morning

if that's it, the fix is the form grabbing a fresh nonce right before submit instead of the one baked into the page, or at least a message telling them to reload. sending the link with a note to open it in chrome or safari also helps with the in-app browser ones