Configure a location blacklist for domain names
Anti-DDoS Proxy lets you block requests to your website services based on the geographic location of the source IP. After you enable the location blacklist for a domain name, all requests from specified regions are blocked.
Background information
You can use the location blacklist in the following scenarios:
If your website services serve users only in a specific region, you can add all other regions to the location blacklist.
If your website services are frequently targeted by DDoS attacks from a specific region, you can add that region to the location blacklist.
Usage notes
The location blacklist for domain names applies only to website services. For non-website services, configure traffic blocking under protection for infrastructure. For more information, see Configure near-origin traffic diversion (currently available only for Anti-DDoS Proxy (Chinese Mainland)) and Configure a location blacklist.
You must configure the location blacklist for each domain name individually.
The location blacklist filters requests within Anti-DDoS Proxy based on the source IP's location. This feature does not reduce the volume of attack traffic that enters the Anti-DDoS Proxy network.
Prerequisites
Ensure that you have added your website services to Anti-DDoS Proxy. For more information, see Add your website to Anti-DDoS Proxy.
Procedure
Log on to the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Choose the Chinese Mainland region.
Anti-DDoS Proxy (Outside Chinese Mainland): Choose the Outside Chinese Mainland region.
In the left-side navigation pane, choose .
On the Mitigation Settings General Policies page, click the Protection for Website Services tab, and select the domain name to configure from the list of domain names on the left.
In the Location Blacklist section, click Settings.
In the Configure Location Blacklist panel, select the regions that you want to block, and then click OK.
In the Location Blacklist section, turn on the Status switch.
Result
After you enable the location blacklist for a domain name, the settings immediately apply to all traffic for that domain name across all associated Anti-DDoS Proxy instances.