A JavaScript (JS) challenge is a middle step between allowing and blocking. It asks the visitor’s browser to run a small script and prove it is a real browser. Most automated attack tools stop there, while people continue with almost no delay.
When a challenge is shown
Aegisify WAF can respond with a challenge in several situations:
- The global WAF mode is Challenge-first and a Core WAF finding qualifies.
- A managed-rule, heuristic, or custom action is set to Challenge.
- The DDoS Shield reaches the Challenge threshold for a traffic group.
- REST progressive enforcement reaches its Challenge-at count.
What the visitor sees
A short interstitial page. Once the browser completes it, a signed aegiswaf_chal cookie is set and the original page loads. The verification lasts for the challenge lifetime (30 minutes by default).
Settings involved
- Browser challenge (enabled by default) and Challenge lifetime in WAF Settings → Managed Protection.
- Challenge thresholds in DDoS Settings and API & Application → REST Protection.
Limits of a JS challenge
API clients, webhooks, and server-to-server integrations cannot run JavaScript. If an integration is challenged, scope an exception (for example a REST allowlist entry or DDoS endpoint allowlist) for its route instead of lowering protection site-wide.
Related: Challenge cookie/token validation, Challenge TTL, Progressive challenge system.
