Help Center> Web Application Firewall> FAQ> Protection Rule Configuration> Others> How Do I Allow Requests from Only IP Addresses in a Specified Geographical Region?

How Do I Allow Requests from Only IP Addresses in a Specified Geographical Region?

If you allow only IP addresses in a region to access the protected domain name, for example, only IP addresses from Beijing can access the protected domain name, perform the following steps:

  1. Add a geolocation access control rule: Set Beijing to Geolocation and select Allow for Protective Action. Figure 1 shows the example.

    Figure 1 Adding an Allow protective action

    For details about how to configure, see Configuring Geolocation Access Control Rules.

  2. Configure a precise protection rule to block all requests. Figure 2 shows an example.

    Figure 2 Blocking all requests

    For details about how to configure, see Adding Precise Protection Rules.