r/webdev • u/athinkingcritically • 13h ago
Discussion Security Verification Failed
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) hookingsend_headerson non-admin requests to defineDONOTCACHEPAGE(true) and callnocache_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
1
u/PippaKelly62 13h ago
The selective pattern almost always means a stale wordpress nonce. Your snippet only works if the cache respects those headers, and godaddy’s managed hosting has its own server level cache and cdn that can ignore them. First check the response headers on the form page for cache hit or age values, then view the page source in a few private windows to see whether the nonce value is identical for everyone, and add the registration page to the host’s cache exclusions or purge it from the godaddy dashboard. Whatsapp and other in app browsers often reopen an old copy of the page, so testing there and sharing the plain link instead is also worth a try.
1
u/Minute-Age9938 13h ago
I'd probably start with the ones opened from WhatsApp. That browser keeps the page from when they tapped the link, so if they come back later the verification value is old. DONOTCACHEPAGE in sendheaders runs too late if GoDaddy already saved the HTML that printed it.
1
u/omfgtora 10h ago
Regardless of whether or not the issue is coming from GoDaddy, you need to get that website off GoDaddy ASAP. "Overpriced" would be an understatement, considering they force/trick you to pay for things you don't need or would be free anywhere else. They have been sued by the US federal government for their business practices.
1
u/SiliconMachine 8h 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
0
u/Far-Theme8289 13h ago
v3 scores a phone on school wifi as bot traffic. nothing is broken on your end, refreshing just rolls the dice again.
1
u/[deleted] 13h ago
[removed] — view removed comment
1
u/[deleted] 13h ago
[removed] — view removed comment