Tencent Cloud CDN is a pay-as-you-go service. 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 cap is exceeded. This will avoid incurring additional CDN acceleration fees.
The bandwidth cap configuration takes about 10 minutes to take effect, during which the consumption generated is charged.
Log in to the CDN console, select Domain Management on the left sidebar, and click Manage on the right of a domain name to enter its configuration page. Open the Advanced Configuration tab to see the Bandwidth Cap Configuration section. It is disabled by default:
You can toggle on the switch to configure the bandwidth cap:
You can toggle off this feature directly. When it’s disabled, the configuration does not take effect in the production environment. If you toggle the switch on, the configuration will take effect across the entire network after the action is confirmed.
If your acceleration domain name is configured for global acceleration and you want to configure acceleration in and outside the Chinese mainland with different bandwidth cap settings, you can click Add Special Configuration.
- Currently, region-specific configuration items cannot be deleted once added but can be disabled.
If the bandwidth cap configuration of the acceleration domain name
cloud.tencent.com is as follows:
Then the actual access will be as follows:
If the bandwidth reaches 11 Gbps in the Chinese mainland and 4 Gbps outside the Chinese mainland, a 404 error will be returned for access requests from all users in the Chinese mainland, while users outside the Chinese mainland can still enjoy the acceleration service.