Go to the Management > Website Configuration page, and select the region of your WAF instance (Mainland China or International).

Select the domain to be configured, and click Policies.

Enable HTTP ACL Policy, and click Settings.

Click Add Rule.

Whitelist configuration example. Use the following configuration to allow all requests from IP 1.1.1.1.

Note If you want to allow all requests from this IP, do not select any “Proceed to …” protection option in the Add Rule dialog box. If any protection option is selected, some requests from this IP can still be blocked.

Similarly, you can also follow this procedure to set blacklist for a specific domain.

Note

A rule supports up to three matching conditions. All conditions in a rule must be matched to trigger the rule. If you want to whitelist or blacklist multiple discrete IP addresses/IP segments, you must configure multiple HTTP ACL rules. For example, to block access requests from 1.1.1.1, 2.2.2.2, and 3.3.3.3, you must configure three rules separately.

The IP matching filed in HTTP ACL rules supports mask format (for example, 1.1.1.0/24), and the logical operator supports “does not have”. For example, you can use the following configuration to only allow requests from specific IP segment to one domain.

Priority exists among multiple HTTP ACL rules. WAF applies the HTTP ACL rules according to the displayed sequence (from top to bottom) of HTTP ACL rules in the HTTP ACL Policy list. Additionally, you can click Sort Rules to change the priority among the HTTP ACL rules.