When Aegisify WAF decides a request deserves verification rather than an outright block, it shows a lightweight browser challenge page. A real browser completes it automatically; most simple bots and scripts do not.
How the token works
- The challenge page runs a small script in the visitor’s browser.
- On success, the browser receives a cookie named
aegiswaf_chal. - The cookie contains an issue time and a signature created with an HMAC-SHA256 hash tied to the visitor’s IP address and the site’s secret salts.
- On later requests, the WAF recomputes the signature. If it matches and the token is still within its lifetime, the visitor is treated as verified.
Because the signature depends on site secrets, the cookie cannot be forged by guessing. Because it is bound to the IP address, a copied cookie does not work from a different address.
Lifetime
The token stays valid for the challenge lifetime, 1,800 seconds (30 minutes) by default. See Challenge TTL setting.
Invalid tokens
When a cookie is tampered with or expired, the WAF logs the event with a short fingerprint of the cookie (never the full value) and asks the visitor to complete the challenge again.
Troubleshooting repeated challenges
- Visitors whose IP address changes frequently (some mobile networks or VPNs) may be challenged more often.
- Browsers that block all cookies cannot keep the token.
- If the site is behind a proxy or CDN, make sure the WAF resolves the real client IP; otherwise all visitors may share one address.
Related: JS challenge support, Progressive challenge system.
