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
- Go to Domains → select a domain → adaptive-rules tab.

- Turn on the master switch (the domain's main Adaptive Rules switch).
- 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. - 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).

- (Optional) use bulk-toggle to enable or disable several rules at once.
- Click Save and wait a few seconds for the change to sync.
Configuration fields
| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| Master enable | The domain's main Adaptive Rules switch | On/off | — | Off = no adaptive rule is evaluated |
| Enabled (per rule) | Enables or disables a single rule | On/off | — | Supports bulk-toggle of multiple rules |
| Priority | Priority | 0–10000 | — | Lower numbers run first |
| Window | Evaluation time window | 5–86400 seconds | — | Specific to adaptive rules (Firewall Rules have no window) |
| Condition_group | OR group of conditions | 0–7 | 0 | AND within a group, OR between groups |
| Field / operator / value | Match condition | Fields come from the dropdown (for example uri_path, uri_query…) | — | Matched by field/operator/value |
| Action | Action when the rule matches | log · 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); priority10; actionscorewith a smalldelta(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; priority20; actionblock(status403). - 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_blockaction (duration_secs+status403) 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_secsseconds; 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
| Symptom | Cause | Fix |
|---|---|---|
| The tab shows no access permission | The organization has not been granted WAF | Contact support to enable WAF for the organization |
| The tab is locked and asks you to enable WAF | WAF is not enabled for the domain | Go to the WAF tab and enable WAF for the domain |
| Saving returns a window error | Window is outside 5–86400 | Set it between 5 and 86400 seconds |
| Saving returns a condition_group error | Group is outside 0–7 | Use groups 0–7 |
| You cannot add a new rule | The limit of 100 rules per domain has been reached | Delete some old rules |
| A rule has no effect | The master switch is off / the rule is disabled | Turn on the master switch and enable the rule |
| An enabled rule still does not fire | Adaptive Rules are not enforced yet | Use 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, parameterdelta),block(status, default 403) andtimed_block(duration_secs+status).challengecan no longer be selected (older rules must change their action before saving). Match fields come from the dropdown (for exampleuri_path,uri_query…).