Skip to main content

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 detect mode (see Order of evaluation).

How to configure​

  1. Go to Domains → select a domain → DDoS tab. Go to Domains → select a domain → DDoS tab
  2. Turn on Enable. Set Mode = shadow to measure first (no blocking yet).
  3. (Optional) Adjust Score sensitivity and the Detect/Challenge/Block thresholds.
  4. Add Allowlist IPs for trusted IPs; use Skip paths for health-check endpoints.
  5. Click Save. Watch the ATS Event Monitoring table in the same tab to review verdicts before switching to enforce.

Configuration fields​

FieldDescriptionValuesDefaultNotes
EnableEnables the DDoS override for the domainOn/offOnOff = DDoS scoring is disabled for this domain (score 0), which is different from Mode "" (inherit)
ModeEnforcement mode"" (inherit) / shadow / enforce""shadow only logs (score 0, no blocking); only enforce applies verdicts; "" follows the default configuration
Score sensitivityMultiplier for the raw DDoS score0.1–10.0 (API); console slider 0.1–5.01.0>1 is stricter, <1 is looser
Block durationTimed-block duration when the verdict is Block (enforce)1 – 604800 seconds00 = no timed block; only takes effect when mode=enforce
Detect thresholdScore threshold → Suspicious0–2000 (=inherits 30)0 = use the default of 30
Challenge thresholdThreshold → Challenge0–2000 (=inherits 60)Must be > Detect
Block thresholdThreshold → Block0–2000 (=inherits 85)Must be > Challenge
Extra static extensionsTreats additional file extensions as static (skipped by scoring)List of extensions—Reduces false positives for assets
Remove default staticRemoves extensions from the static list (so they are scored)List of extensions——
Skip pathsPath prefixes skipped by scoringList of paths—Use for /healthz, webhooks and so on
Allowlist IPsIPs/ranges that skip DDoSCIDR, v4 /8–/32, v6 /16–/128—Match → score 0, verdict Normal. A prefix is required (/32 and so on)
Allowlist ASNsASNs exempt from DDoS evaluationList 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.

  1. 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).
  2. (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".
  3. Click Save.
FieldDescriptionValuesDefaultNotes
Serve a JS challenge on a DDoS "Challenge" verdictEnables the challenge page for the Challenge verdictOn/offOffA 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 sourceDomain default / Interstitial / TransparentDomain default—
Redirect delay (seconds)How long the waiting page is held0–10 seconds; empty = domain defaultDomain defaultOnly used when the effective display is Interstitial
Clearance TTL (minutes)How long the clearance ticket is valid for this sourceEmpty or 1–1440 minutesInherit (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 threshold 85; Block duration 300.
  • Requirements: WAF is enabled for the domain and is in block mode (not detect).
  • 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_score to reach the threat threshold and WAF enabled for the domain and the WAF not in detect mode. If any of these conditions is missing → log only, no blocking. This is the most commonly misunderstood point.
  • mode=shadow always gives score 0 (log only); enabled=false disables DDoS scoring for the domain; mode="" inherits the default configuration.
  • Allowlist IPs and Skip paths make the request skip scoring immediately.

Troubleshooting​

SymptomCommon causeFix
Enforce is on but nothing is blockedThe 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 thresholdContact 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 400Score_multiplier outside 0.1–10; unknown mode; a CIDR that is invalid, broader than /8 (v4) or /16 (v6), or too narrow; ASN=0Fix according to the table in Configuration fields
Cannot save / the Save button is disabledThresholds are in the wrong order (the form disables Save, the API returns 400)Keep Detect < Challenge < Block
The ASN allowlist does not take effectThe raw verdict is already Block, or the IP is in a timed blockASNs 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 appearsJS Challenge is not enabled for your account; the effective mode is not Enforce; the request is not a page navigationContact support; set Mode to enforce; test with a browser
Many real people are blocked by mistakeSensitivity too high / thresholds too lowGo 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? shadow only logs events (no blocking); only enforce actually 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 detect mode, 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.