EdgeScript (ES) allows you to customize Alibaba Cloud Dynamic Route for CDN (DCDN) configurations by running scripts if the standard configurations in the DCDN console cannot meet your business requirements.
ES is free of charge.
|Customize authentication logic||To prevent hotlinking in VOD and live streaming scenarios, authentication is required. ES allows you to customize authentication logic to authenticate requests based on request 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.|
|A/B Test||Before you release a new feature, you can use 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 cache duration or cache expiration rules cannot meet your business requirements in certain scenarios, you can run scripts to create custom caching rules.|
|Customize rate limiting||If you want to configure rate limiting for regular users and premium users, you can run scripts to create rate limiting 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.|