The built-in protection rules of WAF help you defend against common web application attacks, including XSS attacks, SQL injection, crawlers, and web shells. You can customize protection rules to let WAF better protect your website services using these custom rules. Figure 1 shows how WAF engine built-in protection rules work. Figure 2 shows the detection sequence of user-defined rules.
WAF provides the following customized configuration methods to simplify the configuration process. Select a proper configuration method to meet your service requirements.
Method 1: Configuring protection rules for a single domain name
After a domain name is added to WAF, WAF automatically associates a protection policy with the domain name, and protection rules configured for the domain name are also added to the protection policy by default. If there are domain names applicable to the protection policy, you can directly add them to the policy. For details, see Applying a Policy to Your Website.
Protection Rule |
Description |
Reference |
---|---|---|
Basic web protection rules |
With an extensive reputation database, WAF defends against Open Web Application Security Project (OWASP) top 10 threats, and detects and blocks threats, such as malicious scanners, IP addresses, and web shells. |
|
CC attack protection rules |
CC attack protection rules can be customized to restrict access to a specific URL on your website based on a unique IP address, cookie, or referer field, mitigating CC attacks. |
|
Precise protection rules |
You can customize protection rules by combining HTTP headers, cookies, URLs, request parameters, and client IP addresses. |
|
Blacklist and whitelist rules |
You can configure blacklist and whitelist rules to block, log only, or allow access requests from specified IP addresses. |
|
Geolocation access control rules |
You can customize these rules to allow or block requests from a specific country or region. |
|
Web tamper protection rules |
You can configure these rules to prevent a static web page from being tampered with. |
|
Website anti-crawler protection |
This function dynamically analyzes website service models and accurately identifies crawler behavior based on data risk control and bot identification systems, such as JS Challenge. |
|
Information leakage prevention rules |
You can add two types of information leakage prevention rules.
|
|
Global protection whitelist (formerly false alarm masking) rules |
You can configure these rules to let WAF ignore certain rules for specific requests. |
Configuring a Global Protection Whitelist (Formerly False Alarm Masking) Rule |
Data masking rules |
You can configure data masking rules to prevent sensitive data such as passwords from being displayed in event logs. |
Method 2: Configuring protection rules for multiple domain names