How Do I Allow Only Specified IP Addresses to Access Protected Websites?
After you add the website to WAF, configure blacklist and whitelist rules or precise protection rules to allow only specified IP addresses to access the website. WAF then blocks all source IP addresses except the specified ones.
Configuring IP Address Blacklist and Whitelist Rules to Block All Source IP Addresses Except the Specified Ones
- Log in to the management console.
- Go to the protection policy configuration page by following the steps shown in Figure 1.
- In the Blacklist and Whitelist configuration area, enable the protection. Figure 2 shows an example.
- Click Customize Rule. On the displayed page, click Add Rule in the upper left corner.
- In the Add Blacklist or Whitelist Rule dialog box, add two blacklist rules to block all source IP addresses. Figure 3 and Figure 4 show the example.
- Click Add Rule. In the displayed Add Blacklist or Whitelist Rule dialog box, add a rule for the specified IP address or IP address range. For example, if you want to allow 192.168.2.3 to access the website, add a protection rule as shown in Figure 5.
Configuring a Precise Protection Rule to Block All Source IP Addresses Except the Specified Ones
- Log in to the management console.
- Go to the protection policy configuration page by following the steps shown in Figure 6.
- In the Precise Protection configuration area, enable the protection. Figure 7 shows an example.
- Click Customize Rule. In the upper left corner of the displayed page, click Add Rule.
- In the displayed Add Precise Protection Rule dialog box, add a protection rule as shown in Figure 8 to block all requests.
- Click Add Rule. In the displayed Add Precise Protection Rule dialog box, add a rule for the specified IP address. For example, if you want to allow 192.168.2.3 to access the website, add a protection rule as shown in Figure 9.
You can also add a whitelist rule for specified IP addresses or IP address range by referring to Step 6.








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