The IP/Geo Block is used to block requests from specific client IP or geographic locations. It is typically used in the following scenarios:
- If you are certain that you will not operate in a specific country/region, block all traffic from that country/region.
- Block requests from specific IPs or IP ranges, such as certain IPs or IP ranges that frequently send illegal requests to the website.
Steps:
- Log in to the CDNetworks Console, find the security product in use under Subscribed Products.
- Go to Security Settings > Policies.
- Find the hostname for security policy configurations and click
.
- Go to IP/Geo Block tab. If this policy is off, turn it on.
Block Requests from Specific IP/CIDR
- Enter the IP/CIDR under the IP Block tab, separate multiple IPs/CIDR with a semicolon. Up to 500 IPs/IP ranges can be configured, supporting both IPv4 and IPv6. For example, 192.168.1.0/24;2001:3CA1:10F:1A:121B:0:0:12
- Click Publish Changes to make the configuration take effect.
Block Requests from Specific Countries/Regions
- Select the countries/regions you want to block under the Geo Block tab.
- Click Publish Changes to make the configuration take effect.