最終更新日:2026-10-20 18:08:48
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)You can add multiple exception types under the same rule. Each exception type has an OR relationship — the rule is skipped if any one type matches.
If you need to add exceptions to multiple rules at once, go to Shared Configurations > WAF Rule Exceptions to add them centrally:
| Configuration Item | Description |
|---|---|
| Exception Name | A custom name for the exception, to help identify it. |
| Description | A description of the exception’s purpose. |
| Match Conditions | Define which requests this exception applies to (the more precise, the safer). Supports multiple fields such as IP, path, URI, URL parameter, User-Agent, request header, Cookie, and request body. |
| Applied Rules | Select the rule ID(s) this exception applies to. Multiple selections allowed. |
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.