To control the source of access to your business resources, you can use the IP access limit feature in ECDN. By limiting the number of access requests to a node per second from a client IP, you can defend against high-frequency CC attacks and prevent hotlinking by malicious users.
Note:If your application has been migrated to the CDN console, you can go to the console for operation by referring to Content Delivery Network.
Log in to the ECDN Console, select Domain Management on the left sidebar, and click Manage on the right of a domain name to enter its configuration page. You will find the IP access frequency limit configuration in Access Configuration. It is disabled by default:
Enter the frequency threshold and click OK to enable IP access limit.
Configuration description
You can switch to disable this feature. When the switch is off, this feature does not take effect in the production environment even if there is an existing configuration. When the switch is on, this configuration will take effect across the entire network:
Suppose the IP access limit for the acceleration domain name www.test.com
is as follows:
The actual access status will be as follows:
1.1.1.1
requests the resource http://www.test.com/1.jpg
for 10 times in one second, and all access requests are made to one server on ECDN cache node A, then 10 access logs will be generated on this server, 9 of which exceed the QPS limit, and the status code "514" will be returned.2.2.2.2
requests the resource http://www.test.com/1.jpg
twice in one second, and the access requests may be distributed to two ECDN cache nodes for processing due to network conditions, then each node will return the content normally.
Was this page helpful?