DDoS (beta) — denial-of-service protection
DDoS protection (beta) is a per-domain override layer for the DDoS engine (ATS — Automated Threat Scoring). It lets you multiply the threat score, set verdict thresholds (Suspicious/Challenge/Block), choose a mode (inherit/shadow/enforce), fine-tune how static resources are classified, skip paths and allowlist IPs. The DDoS score is added to threat_score. A request is only actually blocked with 403 when threat_score exceeds the threat threshold.
Use it to: fight sophisticated floods (abnormal rates, expensive requests, traffic concentrated on one URI and so on) that go beyond what a simple rate limit can handle. Example: a flood campaign uses thousands of IPs, each sending only a few requests. A per-IP rate limit struggles to catch it, but the DDoS engine scores overall behavior.
This tab is marked BETA. Run in shadow mode to measure first, then turn on enforce.
Before you start
- The domain has been added and points to VNIS.
- Unlike the bot tabs: DDoS does not require WAF to be enabled for the organization in order to save the configuration.
- However, for DDoS to actually run, the DDoS engine must be enabled for your account by VNETWORK; contact support.
- And for the DDoS score to actually block (403), the domain must have WAF enabled and the WAF must not be in
detectmode (see Order of evaluation).
How to configure
- Go to Domains → select a domain → DDoS tab.

- Turn on Enable. Set Mode =
shadowto measure first (no blocking yet). - (Optional) Adjust Score sensitivity and the Detect/Challenge/Block thresholds.
- Add Allowlist IPs for trusted IPs; use Skip paths for health-check endpoints.
- Click Save. Watch the ATS Event Monitoring table in the same tab to review verdicts before switching to
enforce.
Configuration fields
| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| Enable | Enables the DDoS override for the domain | On/off | On | Off = DDoS scoring is disabled for this domain (score 0), which is different from Mode "" (inherit) |
| Mode | Enforcement mode | "" (inherit) / shadow / enforce | "" | shadow only logs (score 0, no blocking); only enforce applies verdicts; "" follows the default configuration |
| Score sensitivity | Multiplier for the raw DDoS score | 0.1–10.0 (API); console slider 0.1–5.0 | 1.0 | >1 is stricter, <1 is looser |
| Block duration | Timed-block duration when the verdict is Block (enforce) | 1 – 604800 seconds | 0 | 0 = no timed block; only takes effect when mode=enforce |
| Detect threshold | Score threshold → Suspicious | 0–200 | 0 (=inherits 30) | 0 = use the default of 30 |
| Challenge threshold | Threshold → Challenge | 0–200 | 0 (=inherits 60) | Must be > Detect |
| Block threshold | Threshold → Block | 0–200 | 0 (=inherits 85) | Must be > Challenge |
| Extra static extensions | Treats additional file extensions as static (skipped by scoring) | List of extensions | — | Reduces false positives for assets |
| Remove default static | Removes extensions from the static list (so they are scored) | List of extensions | — | — |
| Skip paths | Path prefixes skipped by scoring | List of paths | — | Use for /healthz, webhooks and so on |
| Allowlist IPs | IPs/ranges that skip DDoS | CIDR, v4 /8–/32, v6 /16–/128 | — | Match → score 0, verdict Normal. A prefix is required (/32 and so on) |
| Allowlist ASNs | ASNs exempt from DDoS evaluation | List of ASNs >0, at most 16 | — | Requests from ASNs in the list are exempt from DDoS scoring, but not from Block verdicts or timed blocks. ASNs of cloud/hosting providers and mobile carriers cannot be added (saving returns 400); use Allowlist IPs for specific ranges instead |
Challenge group — JS Challenge when the verdict is "Challenge"
By default, the Challenge verdict is only recorded and scored. The Challenge group lets you return a JavaScript challenge page to requests that fall in the Challenge range (not yet Block). How it works in general: JS Challenge.
- In the DDoS (Traffic Shield) tab, scroll to the Challenge group → turn on "Serve a JS challenge on a DDoS "Challenge" verdict" (the Under-Attack JS Challenge item).
- (Optional) adjust the knobs for the DDoS source: JS Challenge display (this source), Redirect delay (seconds), Clearance TTL (minutes). Leave them empty to use Bot Challenge → "JS Challenge defaults".
- Click Save.
| Field | Description | Values | Default | Notes |
|---|---|---|---|---|
| Serve a JS challenge on a DDoS "Challenge" verdict | Enables the challenge page for the Challenge verdict | On/off | Off | A separate opt-in. It is not turned on automatically when the domain has firewall/rate-limit challenge rules |
| JS Challenge display (this source) | Display style for the DDoS source | Domain default / Interstitial / Transparent | Domain default | — |
| Redirect delay (seconds) | How long the waiting page is held | 0–10 seconds; empty = domain default | Domain default | Only used when the effective display is Interstitial |
| Clearance TTL (minutes) | How long the clearance ticket is valid for this source | Empty or 1–1440 minutes | Inherit (30 minutes) | — |
- It only takes effect when the effective mode is Enforce and JS Challenge has been enabled for your account by VNETWORK. Other DDoS settings can still be saved while this box is checked; uncheck it to remove it.
- The challenge page is shown to browsers; protect APIs with Rate Limiting or tokens.
- Visitors who pass the challenge get through, but their DDoS score is not lowered; a Block verdict always wins.
Keep the thresholds in order Detect < Challenge < Block. The console blocks Save if Detect ≥ Challenge or Challenge ≥ Block; set them in the same order when you use the API.
Configuration examples
Example 1 — Measure first with shadow mode.
- Enable = on; Mode =
shadow; keep the default thresholds (0 = inherit 30/60/85). - Result: the engine scores requests and records ATS events but blocks nothing. You review the verdicts in the ATS Event Monitoring table to tune them first.
- Verify: generate light load and check that the events table shows Suspicious/Challenge entries while traffic does not get 403.
Example 2 — Enforce to block floods.
- Enable = on; Mode =
enforce; Block threshold85; Block duration300. - Requirements: WAF is enabled for the domain and is in
blockmode (notdetect). - Result: IPs that reach the Block score get 403 and a 300-second timed block.
- Verify: flood from 1 IP → you get 403 (the Events tab shows the threat score as the block reason); stop the flood, and the block is lifted only after 300s.
Example 3 — Allowlist partner or office IPs.
- Allowlist IPs =
["203.0.113.10/32", "198.51.100.0/24"]. - Result: requests from those IPs always score 0 and are never blocked by DDoS scoring.
- Verify: flood from an IP in the allowlist → no 403.
Example 4 — Lower the sensitivity for a domain with a lot of legitimate traffic.
- Score sensitivity =
0.7(looser), or add Skip paths =["/api/health"]. - Result: the raw score is multiplied by 0.7 → the threshold is harder to reach; the health-check path is not scored.
Order of evaluation
- DDoS scoring runs after Verified bypass, Bot Management and Rate limit; its score is added to
threat_score. - The score only becomes a 403 at the "threat_score gate": this requires
threat_scoreto reach the threat threshold and WAF enabled for the domain and the WAF not indetectmode. If any of these conditions is missing → log only, no blocking. This is the most commonly misunderstood point. mode=shadowalways gives score 0 (log only);enabled=falsedisables DDoS scoring for the domain;mode=""inherits the default configuration.- Allowlist IPs and Skip paths make the request skip scoring immediately.
Troubleshooting
| Symptom | Common cause | Fix |
|---|---|---|
| Enforce is on but nothing is blocked | The DDoS engine is not enabled for your account; or the domain's WAF is off; or the WAF is in detect; or threat_score has not reached the threshold | Contact support to confirm the DDoS engine is enabled + enable the domain's WAF + set the WAF to block + lower the thresholds / increase sensitivity |
| Saving returns 400 | Score_multiplier outside 0.1–10; unknown mode; a CIDR that is invalid, broader than /8 (v4) or /16 (v6), or too narrow; ASN=0 | Fix according to the table in Configuration fields |
| Cannot save / the Save button is disabled | Thresholds are in the wrong order (the form disables Save, the API returns 400) | Keep Detect < Challenge < Block |
| The ASN allowlist does not take effect | The raw verdict is already Block, or the IP is in a timed block | ASNs are only exempt below Block; for cases you are sure about, also use Allowlist IPs (CIDR) |
| "Serve a JS challenge…" is on but no challenge page appears | JS Challenge is not enabled for your account; the effective mode is not Enforce; the request is not a page navigation | Contact support; set Mode to enforce; test with a browser |
| Many real people are blocked by mistake | Sensitivity too high / thresholds too low | Go back to shadow to measure again, lower the sensitivity, add Skip paths for assets |
FAQ
- How is this different from Rate Limiting? Rate limiting counts requests per IP/JA4. The DDoS engine computes an overall behavior score (abnormal rate, cost, URI concentration and so on) and adds it to threat_score.
- What is the difference between shadow and enforce?
shadowonly logs events (no blocking); onlyenforceactually applies verdicts. Always measure with shadow first. - The tab already shows as enabled the first time I open it? Yes. The defaults are Enable on and Mode inherit (
""), even before anything is saved. But if the DDoS engine is not enabled for your account, it has no effect yet. - Why is there still no 403 after turning on enforce? Most likely the DDoS engine is not enabled for your account, or the domain's WAF is off or in
detectmode, or threat_score has not reached the threshold. See Order of evaluation. - Can I use the ASN allowlist? Yes, up to 16 ASNs. ASNs are exempt when the verdict has not reached Block; overly broad shared ASNs are rejected by the system. Allowlist IPs (CIDR) is still the strongest way to exempt traffic.