CubePathDOCS
CDN

Turn on under attack mode

post/cdn/zones/{zone_uuid}/under-attack

Make 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

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

zone_uuid*string

Request body

Turn on the "under attack" mode of a CDN zone: visitors prove they are a browser before they get the site.

application/jsonRequired
duration_minutes?integer | null

How long the mode stays on, from 5 minutes to 24 hours. Leave it out to keep it on until you turn it off.

Range5 ≤ value ≤ 1440
level?integer

2 challenges the whole zone. 3 also applies a hard per-visitor rate limit, for visitors that ignore the challenge.

Default2Value in23

Responses

Successful Response

application/json

available?boolean
Defaultfalse
active?boolean
Defaultfalse
until?string | null
source?string | null
Value in"manual""auto""staff"
level?integer | null
suppress_auto_until?string | null
auto_attack_mode?string
Default"off"Value in"off""notify""on"
detail*string