最終更新日:2026-08-27 17:20:24
Reading time: About 5 minutes
Prerequisites: The hostname has been onboarded, and the WAF policy is enabled. We recommend first using Attack Logs to confirm the incorrectly blocked requests and the triggered rule ID.
| Exception | Whitelist | |
|---|---|---|
| Scope | Skips detection for the specific rule(s) you select | Skips all security policy detection |
| Use When | A WAF rule incorrectly flags legitimate requests | Sources you fully trust (e.g., internal monitoring systems) |
| Security Risk | Low (other rules still apply) | Higher (bypasses all detection entirely) |
Principle: prefer exceptions over whitelists. Use the whitelist only for sources you fully trust (e.g., known internal IP ranges).
Navigation path: Security Settings > Policies > [Target Hostname] > WAF > WAF Rule Exceptions
You typically need to add an exception in the following cases:
SELECT-style query parameters)| Configuration Item | Description |
|---|---|
| Rules to Exclude | Select the rule ID(s) to exclude. Multiple rules use an OR relationship — the condition is met if any selected rule is triggered. |
| Match Conditions | Define which requests this exception applies to (the more precise, the safer). Supports multiple fields such as client IP, path, URI, request parameters, User-Agent, request header, Cookie, and request body. |
Exception match conditions should be as precise as possible to minimize gaps in security coverage:
| Precision | Example | Security |
|---|---|---|
| Best | Path = /api/search AND client IP = partner IP |
High |
| Better | Path starts with /api/ |
Medium |
| Acceptable | Client IP = partner IP range | Medium |
| Avoid | Unconditional exception (applies to all requests) | Low — equivalent to disabling the rule |
Scenario: The rich-text editor’s save endpoint /api/article/save triggers the WAF XSS rule (rule ID: 5000), but this is legitimate business behavior.
Exception configuration:
/api/article/save203.0.113.50After configuration, only requests from 203.0.113.50 accessing /api/article/save skip the XSS rule 5000. XSS detection for other sources and paths remains unaffected.