Reference: all rule types and fields
Quick reference page: a summary of every rule type, operator and condition, count limit, and edge processing order for the org_admin role. Each individual guide explains these in more detail.
This page brings together all rule and configuration types, operators and conditions, unsupported fields and actions, the processing order, and the limits (caps) for the org_admin role. Each individual guide (Cache, Access Control, Rate Limit, and so on) explains these in more detail; this page is for quick lookup.
Error code convention on save (validation failure): all data validation errors return 400 Bad Request (with a list of errors per field). A JSON body with the wrong type, missing required fields, or unknown fields (on APIs that reject unknown fields) is rejected with 422 Unprocessable Entity. Exceeding a count cap usually returns 400; some sections return 409 Conflict or 403 (noted in the table).
Table: all rule and configuration types
| # | Type (display name) | Section (API) | Count cap | Priority semantics | Actions | Failure code |
|---|---|---|---|---|---|---|
| 1 | Upstream / Origin | upstream | urls ≤64 (no cap on rule count) | By selector order / failover | — (no rule actions) | 400 |
| 2 | Cache Settings | cache | — (1 configuration per domain) | — | — | 400 |
| 3 | Cache Policy | cache-policies | ≤100 | Lower number = higher priority, first-match | response_headers.action: set, remove, delete | 400 |
| 4 | Rate Limit | rate-limit | Rules ≤100 | Lower number runs first, first-match | ""/429 → 429 · timed_block → 403 + timed block · challenge (JS Challenge, requires By IP) → challenge page for page navigations, otherwise 429 | 400 |
| 5 | Access Control | access-control | Geo ≤50 · asn ≤50 · ip ≤200 | First-match by priority (lower number wins; tie → deny wins) | allow, deny (allow skips the later security checks: WAF, X-Vtoken, Token V2) | 400 |
| 6 | Token V2 (HMAC URL signing) | access-control.token_v2 | Rules ≤50 | By the rule's priority | — (signature verification) · invalid/missing/expired token → 403 | 400 (nested in access-control) |
| 7 | X-Vtoken | vtoken + /vtoken/keys | Keys: active ≤10, total ≤50 (→409) | — | Token verification (header X-Vtoken or ?x-token=, header wins) · missing/invalid/replay/ip-mismatch → 403 (on required paths; exempt/whitelist still pass) · expired → 410 | 400 |
| 8 | WAF | waf | — (requires WAF entitlement) | Custom rules: priority −1000..1000 | Custom rules: block, log, allow | 400 (no WAF entitlement 403) |
| 9 | WAF AI Profile / Override | waf (ai-profiles + ai-overrides) | Overrides 500/domain (→403) · enabled_rule_ids/score_overrides ≤8192 | — | Override actions: block, monitor, off, shadow (same as monitor) | 400 (duplicate name →409) |
| 10 | Firewall Rules | firewall-rules | 200/domain (→409) | Lower number runs first (default 100, 0–10000) | block, allow, log, bypass, redirect, timed_block, managed_challenge (challenge/js_challenge = aliases; clients that cannot run JS → Block 403 by default, or Allow; Block on a rule that matches every request → 422; a later matching block/timed_block rule still applies) · Not supported (400): rate_limit, rewrite, wait_page (*allow/bypass skip the WAF) | 400 · more than 200 rules 409 |
| 11 | Adaptive Rules | adaptive-rules | 100/domain | priority 0–10000; window 5–86400 | CRUD + master enable + bulk toggle | 400 |
| 12 | Bot Detection | bot | custom_block_patterns ≤128 | — | Block/allow by bot type | 403 without WAF entitlement |
| 13 | Bot Management / Challenge | bot-mgmt | bypass_cidrs ≤256 · path_rules ≤128 | Escalates by level 1/2/3 thresholds | Level 1 → JS challenge · Level 2 → JS challenge + proof-of-work · Level 3 → 403 | 403 without WAF entitlement |
| 14 | DDoS (beta) | ddos | — | — | mode: "" (default)/shadow/enforce | — |
| 15 | ATS | ats | 19 tuning fields | — | — (scoring; 0/0.0 = use the default) | 400 |
| 16 | Redirects | redirects | ≤100 | Lower number runs first (by priority) | status_code ∈ {301,302,307,308} | 400 |
| 17 | Error Pages | error_pages | pages map (keys 400–599) | Per-domain → organization template → global → built-in | — | 400 |
| 18 | Origin Rewrite | origin-rewrite | ≤100 | First-match by priority (lower number first) | — (rewrites path/origin) | 400 |
| 19 | Header Rules | header-rules | — (no count limit) | Not first-match: the edge applies every matching rule in descending priority order (higher numbers run first, lower numbers run last → win when they set the same header); the UI lists them in ascending order | set, append, remove | 400 |
| 20 | CORS | cors | ≤50 | Lower number runs first (by priority), first-match | — (generates CORS headers) | 400 |
| 21 | Security Headers | security-headers | custom_headers ≤50 | — | — (adds/overwrites headers) | 400 |
| 22 | Image Optimization | image-optimization | Rules ≤50 | Rules: lower number = first | output_format per rule | 400 |
| 23 | TLS | tls | — | — | min_version, HSTS, auto-redirect | 400 |
| 24 | Compression | compression | — | — | algorithms ⊆ {gzip,br,zstd,deflate} | 400 |
| 25 | Timeouts | timeouts | — | — | — (null = inherit) | 400 |
| 26 | Purge / Warm | purge / warm | Purge values ≤100 · warm urls ≤1000 | — | Purge mode: url/prefix/suffix/tag/all | Count limit exceeded →400; organization quota (per-request / daily) →429 |
| 27 | Hotlink protection | (no dedicated feature) | — | — | Done with X-Vtoken / Token V2 / Access-Control / a referer condition in Header/Firewall rules | — |
Operators and conditions (rules with conditions)
General principle: within one group → conditions are combined with AND; between groups (different condition_group) → combined with OR. Multiple values within one condition are also usually OR.
| Rule | Condition fields (field) | Operators (operator) | Group logic | condition_group range |
|---|---|---|---|---|
Cache Policy (cache-policies) | url_path, query_string, method, hostname, user_agent, cookie, origin, via, ip_source | equals (+icase/not), regex, starts_with/ends_with (+icase/not), contains/contains_icase (API only, not in the UI) | AND within a group / OR between groups | — (empty conditions = match all) |
Rate Limit match_conditions | Per match_conditions (≤32 per rule) | (rate-limit field/operator set) | AND within a group / OR between groups | 0–7 |
| Firewall Rules | field (including ja4 = API only, no UI dropdown) | operator; flags negate, case_insensitive, transformations ≤8 | AND within a group / OR between groups; 1–64 conditions; value ≤4096 | 0–15 |
| Adaptive Rules | GET /adaptive-rules/fields | (adaptive field/operator set) | AND within a group / OR between groups | 0–7 |
| Redirects | conditions[] 1–20 | Regex (captures $1..$9 usable in destination_url) | First-match by priority (lower number first) | — |
| Origin Rewrite | match_type: prefix*, exact, suffix, contains, wildcard, regex; match_hostnames ≤20 | By match_type | First-match by priority (lower number first) | — |
| Header Rules | condition (rule expression) | Expression | — | — |
| WAF Custom rules | expression (rule expression) | Expression | — | — |
| Token V2 | conditions[] ≤20 | (path/request match conditions) | — | — |
Rules without compound conditions (simple matching): CORS (path_pattern + match_type exact/prefix/regex), Image-Opt (match_extensions + match_type), Access-Control (matches by IP/Geo/ASN + match_hostnames ≤20).
Unsupported fields and actions
| Field or action | Belongs to | Status |
|---|---|---|
connection_pool_size | Upstream (per-domain) | Not supported per domain |
keepalive_secs | Timeouts | Not supported per domain (websocket_idle_secs is supported) |
block_duration_secs | Bot Management (bot-mgmt) | Not supported |
whitelist_asns | ATS | Not supported in ATS — set exempt ASNs in the DDoS section |
threshold_override | WAF AI Profile | Not supported — saving returns 422 |
rate_limit, rewrite, wait_page | Firewall Rules (actions) | Not supported — saving returns 400 |
block (no timer) | Rate Limit (action) | Not supported — use timed_block to block for a period |
Processing order (edge)
Requests pass through the features in this order:
- Verified bots
- CORS preflight
- Access Control — a matching
allowskips all later security checks (WAF, X-Vtoken, Token V2) - X-Vtoken
- Token V2
- Redirects
- Bot Management (
bot-mgmt) - Rate limit
- DDoS / ATS
- Firewall Rules — the
allow/bypassactions skip the other security checks (Rate Limit, Bot Management, DDoS, WAF); X-Vtoken and Token V2 still apply - WAF: managed rules → custom rules → AI rules
- Bot Detection
Remember: Access Control allow skips every security check after it (including X-Vtoken and Token V2). Firewall allow/bypass skips the other security checks (Rate Limit, Bot Management, DDoS, WAF), but X-Vtoken and Token V2 still run. Verified bypass (verified bots) only skips Bot Management/Managed Challenge + Rate Limit, and does not skip the WAF. Cache-policy precedence: rule > domain > global.
Important limits (caps)
| Object | Cap | When exceeded |
|---|---|---|
| Cache Policy | 100 | Save error |
| Rate Limit rules | 100 | Save error |
| Redirects | 100 | Save error |
| Origin Rewrite | 100 | Save error |
| Firewall Rules | 200/domain | 409 |
| Adaptive Rules | 100/domain | Save error |
| Access Control — Geo rules | 50 | Save error |
| Access Control — ASN rules | 50 | Save error |
| Access Control — IP rules | 200 | Save error |
| CORS rules | 50 | Save error |
| Image Optimization rules | 50 | Save error |
| Token V2 rules | 50 | Save error |
| X-Vtoken keys | Active ≤10 / total ≤50 | 409 |
| WAF AI Override | 500/domain | 403 |
WAF AI enabled_rule_ids / score_overrides | ≤8192 each | Save error |
Upstream urls | ≤64 (each ≤2048) · origin_headers ≤50 | Save error |
Cache status_ttl map | ≤500 entries | Save error |
Cache-key header_include/cookie_include | ≤16 each · Vary allowlist ≤8 | Save error |
Bot Mgmt bypass_cidrs / path_rules | ≤256 / ≤128 | Save error |
Bot Detection custom_block_patterns | ≤128 | Save error |
Security Headers custom_headers | ≤50 | Save error |
| Purge values / Warm urls | ≤100 / ≤1000 | Save error |
Important notes and unusual behavior
- The WAF Workspace has 5 tabs: Overview · Access tokens · Rules · Traffic defense · Events.
- Firewall
condition_groupaccepts values 0–15. - Quota is read-only for
org_admin. Setting, editing, or resetting quotas (both Traffic and Purge/Warm) returns 403 for org_admin, and the UI does not show the quota panels; you can read the quota of your own organization through the API (sub-organizations → 403). - Broad CIDRs are blocked in every whitelist/allow: an
allow/bypass CIDR broader than v4/8or v6/16is rejected (400) — including0.0.0.0/0,0.0.0.0/1,::ffff:0.0.0.0/96(not just/0). This applies to: Access-Control IP allow, Token V2 whitelist, X-Vtokenwhitelist_ips, Bot-Mgmtbypass_cidrs, Rate-Limitbypass_ips, Firewall IP allow/bypass. (DDoSwhitelist_ipsis separate: v4 /8–/32, v6 /16–/128.)
Unusual behavior to remember
- Lower priority number runs first, first-match: CORS, Firewall, Cache Policy, WAF custom, Image Optimization, Redirects, Origin Rewrite, Rate Limit. Access Control: lower number wins, tie →
denywins. - Header Rules: not first-match — the edge applies every matching rule in descending priority order (lower numbers run last and win for the same header); the UI lists them in ascending order.
- Cache Policy priority: lower number = higher priority, first-match.
- Firewall
block_status_code: set it explicitly; the UI pre-fills 429, and 403 is used when no value is saved. - TLS
min_version: selecting 1.0/1.1 is still raised to a minimum of 1.2 (PCI). HTTP/3 to a domain with H3 disabled → 421. contains/contains_icase(Cache Policy) are only available in the API, not in the UI.ja4(Firewall) is API only, with no UI dropdown.- Cache Policy
origin_response_headers[]is a separate list (≤20 per rule), distinct fromresponse_headers[]: it provides the "remove Set-Cookie to make responses cacheable" and "strip Vary → single-variant" features.remove Varyreturns 400 if the rule is a catch-all or has a non-emptyvary_headers.
Common terms
| Term | Short meaning |
|---|---|
| Edge | VNIS edge servers located close to users — where cache and security are handled before (if needed) contacting the origin. |
| Origin / Upstream | Your origin server, which holds the actual content; the edge fetches content from it when the cache does not have it yet. |
| CNAME | A DNS record that points your domain to VNIS so traffic goes through the CDN. |
| TTL | How long content is considered "fresh" in the cache before it must be fetched again from the origin. |
| HIT / MISS | HIT = the cache can serve the content immediately; MISS = the cache does not have it and must fetch it from the origin. |
| Purge / Warm | Purge = remove content from the cache; Warm = preload content into the cache for faster delivery. |
| SWR (stale-while-revalidate) | Temporarily serve the old copy while quietly fetching a new one in the background. |
| WAF | Web application firewall — filters malicious requests (SQLi, XSS, and so on). |
| CIDR | Notation for an IP address range, for example 203.0.113.0/24. |
| ASN | A number that identifies a network or Internet provider. |
| HSTS | A header that tells browsers to access the domain only over HTTPS. |
| ACME | A protocol for automatically issuing free SSL certificates (Let's Encrypt, ZeroSSL). |
| First-match | When several rules match, the system evaluates them in priority order and stops at the first matching rule. |
| Rule priority | A rule's priority; in many features lower number = higher priority. |
If you notice differences from what you see on screen, please let us know so we can update this page.