Alibaba Cloud CDN (DCDN) supports the EdgeScript (ES) feature. This feature allows you to customize Alibaba Cloud CDN (DCDN) by running scripts if the standard configurations in the Alibaba Cloud CDN (DCDN) console cannot meet your business requirements.
ES supports easy-to-learn syntax and provides a large library of functions. You can use the syntax and functions to customize CDN (DCDN) features.
ES provides encapsulated functions, simple decision making statements, and built-in variables that can be recognized by CDN (DCDN) nodes. Alibaba Cloud CDN (DCDN) invokes functions based on specified variables. This allows you to customize features such as authentication, caching, throttling, adding request headers, and deleting request headers. ES is an agile service that helps you customize CDN (DCDN) features based on your business requirements.
ES is free of charge.
|Customize authentication logic||Authentication logic customization is commonly required by hotlink protection for on-demand video streaming and live streaming. ES allows you to customize authentication logic to authenticate requests based on parameters, cookies, or algorithms. Authentication reinforces protection for resources on your origin server.|
|Customize request and response headers||ES allows you to modify request and response headers based on your business requirements.|
|Rewrite and redirect requests||If your website supports different languages, requests destined for the website are redirected to the URLs that point to content written in the requested language. For example, requests that require the English or German language are redirected from the China site to the English or German site.|
|Run A/B tests||Before you release a new feature, you can use Alibaba Cloud CDN (DCDN) to run A/B tests. You can send requests that carry different request headers or URLs to different origin servers. These requests trigger different features on the origin servers.|
|Customize caching||If the standard time-to-live (TTL) values or cache expiration rules for cached content cannot meet your business requirements in certain scenarios, you can run scripts to create custom caching rules.|
|Throttle requests||If you want to throttle requests from regular users and premium users to different rates, you can run scripts to create throttling rules.|
|Block requests||ES allows you to run scripts to block requests from specified IP addresses. You can specify the regions or logic based on which requests are blocked. You can also create anti-bot policies to protect your resources from bots.|