Geo-blocking allows you to block all access requests from source IP addresses in specified regions (Mainland China, Hong Kong Special Administrative Region (SAR), Macao SAR, Taiwan, and other continents) with a single click. This feature is available only to specified domains.
Assume that normal requests to access example.aliyundemo.com are from China (including Hong Kong SAR, Macao SAR, and Taiwan). You can configure Geo-blocking for example.aliyundemo.com to block access requests from outside China regions.
- Geo-blocking takes effect at the domain level. If you want to block multiple domains, you need to configure them separately.
- Geo-blocking uses Anti-DDoS Premium to identify and filter source IP addresses based on their regions. This method does not prevent DDoS attacks from sending traffic.
- Log on to the Anti-DDoS Premium console.
- In the left-side navigation pane, choose .
- Select the domain (example.aliyundemo.com is used as an example) for which you want
to set Geo-blocking. Turn on Geo-blocking.
- In the Geo-blocking section, click Change Settings. In the dialog box that appears, select the regions to be blocked. You can configure
Geo-blocking as shown in the following figure. After the configuration takes effect,
traffic from outside China regions cannot access example.aliyundemo.com.
- After selecting regions, click OK to make the configuration take effect.