Skip to main content

Adaptive Rules

Adaptive Rules are a per-domain set of security rules, a sibling of Firewall Rules, that evaluate conditions over a time window. In other words, they look at a client's behavior over a period of time instead of only individual requests.

Use them to: respond to repeated or cumulative behavior over a period of time (for example, a request pattern that appears several times within the window). Example: a client keeps hitting suspicious conditions for 5 minutes. An adaptive rule tracks this over the window and acts on it.

Not yet active (coming soon): Adaptive Rules are not enforced yet. You can save and validate rules, but no adaptive rule actually fires. For example, a rule "Signal: status 200 / threshold 5 / Block" will not block anything. Treat the description below as the upcoming behavior. If you need to block now, use Firewall Rules. (Note: this applies only to the "Adaptive Rules" feature. Other features, such as the JS Challenge action of Firewall Rules and Rate Limiting, work normally.)

Configuration model (not enforced yet, see the note above): rules support these actions: log (record only), score (add to the score, parameter delta), block (block, parameter status, default 403) and timed_block (block for a limited time, parameters duration_secs + status, default 403). There is no challenge action: Adaptive Rules never issue a challenge. An older rule saved with challenge shows a "Challenge (legacy, not enforced)" tile with a warning and cannot be saved until you choose another action. For a real JS challenge, use a Firewall Rule or Rate-limit rule with the JS Challenge action (see JS Challenge). Limits: at most 100 rules per domain, window 5–86400s, condition_group 0–7, body marker ≤ 64 KB and ≤ 16 patterns. Match fields include uri_path, uri_query (string)…

Count/Signal model (upcoming behavior): a rule counts signals within the window and acts when a threshold is reached. Signals include: status in a set / not in a set / within a range, a marker in the body, and a header match. Signals are grouped by a Count key: Client IP / username / JA4 / IP+path / header / cookie. Condition groups are joined with OR; the console has no "Add OR group" button, so OR groups can only be set through the API.

Before you start​

  • The domain has been added and points to VNIS.
  • WAF is enabled for the organization (same as Firewall Rules: if the organization does not have WAF, the tab shows no access permission, and the create/edit/enable API returns 403).
  • WAF is enabled for the domain (in the WAF tab). Otherwise, the adaptive-rules tab is locked and shows the prompt "Enable WAF for this domain (WAF tab) to use this feature".

How to configure​

  1. Go to Domains → select a domain → adaptive-rules tab. Go to Domains → select a domain → adaptive-rules tab
  2. Turn on the master switch (the domain's main Adaptive Rules switch).
  3. Click Add rule: set the priority and window, and add conditions (in the console, every condition belongs to group condition_group = 0, meaning AND; OR groups 1–7 can only be set through the API). Fields are chosen from a dropdown.
  4. Choose an Action: Log only (record only), Add to threat score (add to the score), Block (block), Timed block (block for a limited time). There is no Challenge action: Adaptive Rules never issue a JS challenge. For a JS challenge, use Firewall Rules or Rate Limiting (see JS Challenge). Action section of the Adaptive rule form: four tiles, Log only / Add to threat score / Block / Timed block, with no Challenge
  5. (Optional) use bulk-toggle to enable or disable several rules at once.
  6. Click Save and wait a few seconds for the change to sync.

Configuration fields​

FieldDescriptionValuesDefaultNotes
Master enableThe domain's main Adaptive Rules switchOn/off—Off = no adaptive rule is evaluated
Enabled (per rule)Enables or disables a single ruleOn/off—Supports bulk-toggle of multiple rules
PriorityPriority0–10000—Lower numbers run first
WindowEvaluation time window5–86400 seconds—Specific to adaptive rules (Firewall Rules have no window)
Condition_groupOR group of conditions0–70AND within a group, OR between groups
Field / operator / valueMatch conditionFields come from the dropdown (for example uri_path, uri_query…)—Matched by field/operator/value
ActionAction when the rule matcheslog · score · block · timed_block (legacy challenge: display only, must be changed before saving)—score has delta; block has status (default 403); timed_block has duration_secs + status

Limits: at most 100 rules per domain; body marker ≤ 64 KB, ≤ 16 patterns. Supported operations: CRUD (create/edit/delete), master enable (main switch), bulk-toggle (enable/disable in bulk).

Configuration examples​

The examples below describe the planned behavior of the configuration model. Because Adaptive Rules are not enforced yet (see the top of this page), these rules can be saved but do not actually block or add to the score yet. Actions: log/score/block/timed_block.

Example 1 — Observe and add to the score over a 5-minute window (score).

  • 1 group (AND) of conditions using fields from the dropdown (for example uri_path); window = 300 (5 minutes); priority 10; action score with a small delta (for example 10).
  • Expected result: each match within the window adds to the client's score (without blocking immediately), combined with other scoring mechanisms.
  • How to verify: generate traffic that matches the conditions within the window → watch the Events/analytics tab.

Example 2 — Block on an OR combination (block).

  • Group 0: condition A; Group 1: condition B (OR between the two groups); window 600; priority 20; action block (status 403).
  • Result: a client that matches A or B within the window is blocked with 403.
  • How to verify: trigger A alone, then B alone → both make the rule match and return 403.

Example 3 — Timed block plus bulk enable/disable (timed_block).

  • Prepare several rules with the timed_block action (duration_secs + status 403) in the disabled state. When an attack starts, use bulk-toggle to enable them all; when it ends, disable them again, or quickly turn everything off with the master switch.
  • Result: matching clients are blocked for duration_secs seconds; you change the state of many rules in one operation.
  • How to verify: after the bulk-toggle, the rule list changes state all at once; matching clients are temporarily blocked.

Order of evaluation​

  • Among adaptive rules: lower priority numbers run first.
  • Master switch off = all of the domain's adaptive rules are skipped.
  • Adaptive rules are evaluated over a window and belong to the same per-domain security rule group as Firewall Rules, once the feature is enforced. Currently no adaptive rule actually applies.

Troubleshooting​

SymptomCauseFix
The tab shows no access permissionThe organization has not been granted WAFContact support to enable WAF for the organization
The tab is locked and asks you to enable WAFWAF is not enabled for the domainGo to the WAF tab and enable WAF for the domain
Saving returns a window errorWindow is outside 5–86400Set it between 5 and 86400 seconds
Saving returns a condition_group errorGroup is outside 0–7Use groups 0–7
You cannot add a new ruleThe limit of 100 rules per domain has been reachedDelete some old rules
A rule has no effectThe master switch is off / the rule is disabledTurn on the master switch and enable the rule
An enabled rule still does not fireAdaptive Rules are not enforced yetUse Firewall Rules for immediate blocking in the meantime

FAQ​

  • Are Adaptive Rules running yet? No. Configuration is only saved and validated, and no rule actually fires yet. If you need to block now, use Firewall Rules. (The JS Challenge of Firewall/Rate Limit and other "adaptive" features are running.)
  • How are Adaptive Rules different from Firewall Rules? Adaptive Rules have a window (time window) to evaluate behavior over time; Firewall Rules evaluate each request. Adaptive rules allow condition groups 0–7 (firewall allows 0–15).
  • Can I quickly turn everything on or off? Yes. Use the master switch (all rules) or bulk-toggle (several rules at once).
  • What are the actions and match semantics? Actions are log, score (add to the score, parameter delta), block (status, default 403) and timed_block (duration_secs + status). challenge can no longer be selected (older rules must change their action before saving). Match fields come from the dropdown (for example uri_path, uri_query…).