Configuring a False Alarm Masking Rule
You can add false alarm masking rules to let WAF ignore certain rules IDs or event types (for example, skip XSS checks for a specific URL).
If you have enabled enterprise projects, you can select your enterprise project from the Enterprise Project drop-down list and add protection policies for the domain names in the project.
Prerequisites
A website has been added to WAF.
Constraints
- You can configure false alarm masking rules only for attack events blocked or recorded by basic web protection rules preset in WAF.
- It takes several minutes for a new rule to take effect. After the rule takes effect, protection events triggered by the rule will be displayed on the Events page.
- You can configure a false alarm masking rule by referring to Handling False Alarms. After handling a false alarm, you can view the triggered false alarm masking rule in the false alarm masking rule list.
Procedure
- Log in to the management console.
- Go to the protection policy configuration page by following the steps shown in Figure 1.
- In the False Alarm Masking configuration area, change Status if needed and click Customize Rule. Figure 2 shows an example.
- In the upper left corner of the False Alarm Masking page, click Add Rule.
- Add a false alarm masking rule by referring to Table 1. Figure 3 shows an example.
Table 1 Parameters for adding a false alarm masking rule Parameter
Description
Example Value
Domain Name
Domain name bound to the policy.
To protect a single domain name corresponding to a wildcard domain name, manually enter the complete domain name.
www.example.com
Path
Part of URL (excluding the domain name) that a false alarm is reported for.- Prefix match: If you select Prefix is, the entered path is used as the prefix. For example, if the path to be protected is /admin/test.php or /adminabc, set Path to /admin.
- Exact match: The path to be entered must be Equal to the path to be protected. For example, if the path to be protected is /admin/test.php, set Path to /admin/test.php.
NOTE:- The path supports prefix match and exact match method only and does not support regular expressions.
- The path cannot contain two or more consecutive slashes. For example, ///admin. If you enter ///admin, the WAF engine converts /// to /.
Equal to
/admin
Rule
The item that the false alarm masking rule takes effect for. The options are:
- ID: Configure the rule by event ID.
- Attack type: Configure the rule by event type.
- All built-in rules: all checks enabled in Basic Web Protection.
Attack type
ID
This parameter is mandatory when Rule is set to ID.
ID of an attack event on the Events page. If the event type is Custom, it has no event ID. Click Handle False Alarm in the row containing the attack event to obtain the ID. To configure false alarm masking on the Events page, refer to Handling False Alarms.
041046
Attack Type
This parameter is mandatory when Rule is set to Attack type.
Select an attack type from the drop-down list box.
WAF can defend against XSS attacks, web shells, SQL injection attacks, malicious crawlers, remote file inclusions, local file inclusions, command injection attacks, and other attacks.
SQL injection
Rule Description
A brief description of the rule. This parameter is optional.
SQL injection attacks are not intercepted.
Advanced Settings
To ignore attacks of a specific field, specify the field in the Advanced Settings area. After you add the rule, WAF will stop blocking attack events of the specified field.
Select a target field from the first drop-down list box on the left. The following fields are supported: Params, Cookie, Header, Body, and Multipart.- If you select Params, Cookie, or Header, you can select All or Specified field to configure a subfield.
- If you select Body or Multipart, you can select All.
- If you select Cookie, the Domain Name and Path can be empty.
NOTE:If All is selected, WAF will not block all attack events of the selected field.
Params
All
- Click OK. You can view the rule in the list of false alarm masking rules. Figure 4 List of false alarm masking rules
Other Operations
- To disable a rule, click Disable in the Operation column of the rule. The default Rule Status is Enabled.
- To delete a rule, click Delete in the row containing the rule.
Last Article: Configuring an Information Leakage Prevention Rule
Next Article: Configuring a Data Masking Rule



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.