Skip to main content
POST
Add an edge WAF rule or exception

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.

Body

application/json

A customer WAF rule. block answers 403 in every mode; allow forwards without inspection; skip_rules leaves Core Rule Set rules 911000-944999 out. A matching block wins, then allow; skipped rules of every match combine. block and allow need a path_prefix, methods or sources.

action
enum<string>
required
Available options:
block,
allow,
skip_rules
hostname
string

One hostname at or below the zone; left out, every hostname.

description
string
Maximum string length: 200
path_prefix
string

Matched at a segment boundary of the cleaned request path.

Maximum string length: 512
methods
enum<string>[]
Available options:
DELETE,
GET,
HEAD,
OPTIONS,
PATCH,
POST,
PUT
sources
string[]

Client address prefixes in CIDR notation.

Maximum array length: 32
rule_ids
integer[]
Maximum array length: 64
Required range: 911000 <= x <= 944999
enabled
boolean

Response

The rule

rule
object
required