Per-name settings

Give one name of a zone its own WAF, origin, access gate, rate limits or AI Crawl Control settings while it inherits everything else from the zone.

On this page

A zone holds every name of a registrable domain: example.com, www.example.com, api.example.com, shop.example.com… Each proxied name is a site at the edge. By default every name uses the zone's edge settings. A name can override some of them in hosts.<name>: its site is then the zone's settings with its own values on top.

  • Nested objects (access_gate, hsts, origin, cache, rum) merge field by field: a name can change only origin.port.
  • Lists (cors_allow_origins, redirect_allow_hosts, access_gate.emails…) are replaced whole.
  • rate_rules, early_hints and ai_agents of a name replace the zone's as a whole. The first time you change a name's ai_agents or early_hints, the fields you don't give are copied from the zone.

Up to 100 names per zone can have their own settings. A name must be the zone or below it. You can prepare settings for a name before it has a proxied record; the change then warns that the edge doesn't serve the name yet.

Keys a name can override

KeyNotes
mode, waf_level, stack, enable_feed, rate_limit_rpmWAF settings
block_page_mode, block_page_html, fake_server_headerBlock page
max_body_mb, timeout_ms, compressionWAF settings
redirect_allow_hosts, cors_allow_originsLists, replaced whole.
access_gateenabled, path, ttl_hours, emails.
hstsmax_age, include_subdomains, preload; see HSTS.
originscheme, port, tls_verify, server_name, client_cert; see Origin TLS.
cache, early_hintsSee Cache.
rumSee Analytics.
rate_rulesThe name's own list; its rules don't carry hosts. [] = no rules for this name. See Rate limiting.
ai_agentsSee AI Crawl Control settings.

redirects and hosts can't be set inside a name: every redirect rule already names its host. An unknown key is rejected with 422.

Override a setting

On Security → Firewall, Security → Access gate and the other settings pages that show Applies to, pick a name instead of Whole domain (every name). Greyed values are inherited; Customize for this name gives the name its own value. Names lists every proxied name with the number of settings it customizes; Settings opens them.

Inherit again

Click Inherit again next to a customized value.

Rules for some names

Edge rules (IP, country, WAF exceptions, rate limit rules) and rate limiting rules take a hosts list: with it, the rule applies only to those names; without it (or empty), to every name of the zone.

openwaf-cloud ctl rules add example.com kind=ip ip=198.51.100.10 action=allow hosts:='["admin.example.com"]' --reason "Office"

To see the result for one name, open its effective configuration.

Last updated:

↑↓ to navigate↵ to openesc to close