최신 업데이트:2026-03-23 15:05:06
Reading time: About 7 minutes
Prerequisites: None, as long as the hostname has been onboarded.
When standard policies such as WAF Managed Rules, Bot Management, and Rate Limiting cannot meet your specific business security requirements, use Custom Rules for granular control.
Custom Rules allow you to:
| Configuration Item | Description |
|---|---|
| Rule Name | Used for log identification; it is recommended to describe the rule’s purpose |
| Match Conditions | Defines the request scope for the rule (supports AND/OR combinations of multiple conditions) |
| Action | The action to take when matched (see details below) |
| Priority | Lower numbers indicate higher priority. Rules with the same priority are ordered by creation time |
Action selection guide:
| Action | Use When |
|---|---|
| Not Used | Skip traffic detection for the current rule or feature; requests continue to other detection modules |
| Log | During the rule validation phase — only records logs without affecting normal access |
| Deny | The request is confirmed as malicious — directly block access and return an error page; stop matching subsequent rules once triggered |
| Reset Connection | Directly reset the TCP connection without returning any response |
| Delay | Delay the response — used to counter high-frequency requests from automated tools |
Supported field types: Request path, HTTP method, Client IP, Request header, Cookie, User-Agent, Request parameters, etc.
Requirement: A malicious tool with the User-Agent MassScanner/3.0 has been identified and needs to be blocked immediately.
Configuration:
MassScannerRequirement: Only allow real browsers that have passed JavaScript Verification to access the /admin path, preventing automated tools from reaching the admin interface.
Configuration:
/adminWhen a request matches multiple custom rules, the rules are evaluated in descending order of priority. If a rule with the Deny action is triggered, evaluation stops immediately and subsequent rules are not checked. If the request is not denied, it continues to match all remaining rules.