Skip to main content
PUT
Set one hostname's edge WAF policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

zone
string
required

The hosted zone's DNS name: the organisation zone or one of its cluster zones.

hostname
string
required

The zone name or a hostname below it.

Body

application/json

An edge WAF policy. Monitor logs matches without blocking; off skips inspection. Strict runs the OWASP Core Rule Set at paranoia level 2, standard at level 1.

mode
enum<string>
required
Available options:
block,
monitor,
off
sensitivity
enum<string>
required
Available options:
standard,
strict

Response

The zone's WAF settings

waf_settings
object
required

Everything that decides a zone's WAF. The most specific setting wins: a hostname's own policy, then the nearest zone at or above it with a policy of its own, then block/standard.