API referenceSections

The site's web application firewall

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/sites/{id}/waf

The site's web application firewall (ADR 0106)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Settings

Content type: application/json

  • static_bypass WAFStaticBypass required
    • allowed boolean required
    • reason string optional

      why it is not allowed

      Allowed values: "plan" "application"
    • active boolean required

      IIS serves the files without the firewall now: the option is on, allowed, and the firewall is on

    • extensions array<string> required
  • settings WAFSettings required
    • mode string required
      Allowed values: "off" "detect" "block"
    • paranoia integer required
      • minimum 1
      • maximum 4
    • threshold integer required

      Inbound anomaly score that blocks

      • minimum 2
      • maximum 100
    • presets array<string> required
      Allowed values: "wordpress" "laravel" "joomla" "drupal"
    • exclusions array<WAFExclusion> required
      • rule_id integer required

        A request rule of the Core Rule Set, 911000-948999

      • path string optional

        URL path prefix; empty = the whole site

      • target string optional

        ARGS:name, ARGS_NAMES:name, REQUEST_COOKIES:name or REQUEST_HEADERS:name; empty = the whole rule

      • note string optional
    • allow_ips array<string> required
    • fail_mode string required
      Allowed values: "open" "closed"
    • body_limit_kb integer required
      • minimum 64
      • maximum 1048576
    • over_limit string required
      Allowed values: "partial" "reject"
    • static_bypass boolean optional

      Off by default. On: IIS serves the site's existing static files (WAFStaticBypass.extensions) without the firewall, for GET/HEAD without a body, a plain query string and path (ADR 0106, D16). Refused when the plan forbids it (WAF_STATIC_NOT_IN_PLAN) or the site runs an application (WAF_STATIC_APPLICATION). Those requests are not inspected and never appear among the firewall's events.

  • allowed boolean required

    false when the account's plan leaves the firewall out

  • missing array<string> required
    Allowed values: "url_rewrite" "arr" "inventory"
  • crs_version string required
  • presets array<string> required
Example
{
  "static_bypass": {
    "allowed": true,
    "reason": "plan",
    "active": true,
    "extensions": [
      "string"
    ]
  },
  "settings": {
    "mode": "off",
    "paranoia": 1,
    "threshold": 2,
    "presets": [
      "wordpress"
    ],
    "exclusions": [
      {
        "rule_id": 0,
        "path": "string",
        "target": "string",
        "note": "string"
      }
    ],
    "allow_ips": [
      "string"
    ],
    "fail_mode": "open",
    "body_limit_kb": 64,
    "over_limit": "partial",
    "static_bypass": true
  },
  "allowed": true,
  "missing": [
    "url_rewrite"
  ],
  "crs_version": "string",
  "presets": [
    "string"
  ]
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required