Turn on under attack mode
/cdn/zones/{zone_uuid}/under-attackMake every visitor of the zone prove they are a browser before they get the site. Use it while a flood of requests is hitting the zone. It stays on until you turn it off, or for duration_minutes (5 minutes to 24 hours) if you set it. APIs, webhooks and bots that cannot solve a challenge get a challenge page: let them through with WAF rules of type bypass. Calling it again changes the end time.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Turn on the "under attack" mode of a CDN zone: visitors prove they are a browser before they get the site.
How long the mode stays on, from 5 minutes to 24 hours. Leave it out to keep it on until you turn it off.
5 ≤ value ≤ 14402 challenges the whole zone. 3 also applies a hard per-visitor rate limit, for visitors that ignore the challenge.
2Value in23Responses
Successful Response
application/json
falsefalse"manual""auto""staff""off"Value in"off""notify""on"