When you find that normal requests to your site are mistakenly blocked by WAF, you can set custom rule groups to prevent this issue.
When a normal request to your site is blocked by WAF, you can identify the rule that causes the issue and create a custom rule group for the affected domain. You can then remove the specified rule to resolve the issue.
Note Before you remove a rule, make sure that the requests blocked according to this rule are normal requests.
Identify the ID of the protection rule that causes false positives
- Log on to the Web Application Firewall console.
- Select Mainland China or International.
- In the left-side navigation pane, choose Attack Protection. and click
- Click Web Application Attack and select the affected domain from the drop-down list. Then click Attack Details.
- You can select a time range or source IP to search for records you are interested in. The record contains the ID of the protection rule that causes false positives.
Create custom group rules for a domain
- In the left-side navigation pane, choose Policies to view the protection configuration of this domain.
- In the left-side navigation pane, choose Copy. . Select the rule group associated with the affected domain and click
- Enter a rule group name and description. Click OK to create a custom rule group.
- Select the newly created rule group and click Edit.
- In the Configure Rule Group dialog box that appears, select the rule that has caused false positives from the rules list on the right side. Click to remove this rule from the rule group and click Confirm.
Note All protection rules are listed on the left side, and rules in the specified custom rule group are listed on the right side.
- On the Custom Rule Groups page, select the new rule group, click Apply to Website, and select the affected domain.
Note If requests are still blocked, make sure you have identified the right ID of the protection rule that causes false positives and remove this rule from the custom rule group.