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.
Autorización
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
Cuerpo de la petición
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.
2Valores23Respuestas
Successful Response
application/json
falsefalse"manual""auto""staff""off"Valores"off""notify""on"