API referenceSections

WAFSettings

WAFSettings object
  • 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
  • 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.

Used by

PUT/api/v1/tenants/{tid}/sites/{id}/wafApply the site's firewall settings; turning it on needs URL Rewrite, ARR and a plan that includes it