Tencent Cloud CDN is pay-as-you-go. If you are concerned about excessive bandwidth usage and fee surges due to hotlinking by malicious users, you can set a bandwidth cap to control usage. This feature is only applicable to bill-by-bandwidth users.
Bandwidth cap configuration can detect the bandwidth generated in a statistical period (at a 5-minute granularity) and perform forced origin-pull according to the configuration or disable the CDN service (a 404 error will be returned for all requests) if the threshold is exceeded. This will avoid incurring additional CDN acceleration fees.
Log in to the CDN Console, select Domain Management on the left sidebar, and click the domain name to enter its configuration page. You will find the bandwidth cap configuration on the Advanced Configuration tab. It is disabled by default:
You can toggle the switch to configure the bandwidth threshold:
You can toggle the bandwidth cap switch to disable this feature. When the switch is off, any existing configuration will not take effect in the production environment. If you toggle the switch on, a message will be displayed asking for your confirmation before the configuration takes effect across the entire network.
If your acceleration domain name is configured for global acceleration and you want to configure acceleration in and outside Mainland China with different bandwidth cap settings, you can click Add Special Configuration.
Currently, an added region-specific configuration item cannot be deleted, it can only be disabled.
Suppose the bandwidth cap configuration of the acceleration domain name
cloud.tencent.com is as follows:
The access status will be as follows:
If the bandwidth reaches 11 Gbps in Mainland China and 4 Gbps outside Mainland China, a 404 error will be returned for access requests from all users in Mainland China, while users outside Mainland China can still enjoy the acceleration service.