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 introduction

ES supports easy-to-learn syntax and provides a large library of functions. You can use the syntax and functions to customize DCDN features. ES01
ES provides encapsulated functions, simple decision-making statements, and built-in variables that can be recognized by DCDN nodes. DCDN invokes functions based on specified variables. This allows you to customize features such as authentication, caching, rate limiting, adding request headers, and deleting request headers. ES is an agile service that helps you customize DCDN features based on your business requirements. ES02

Billing

ES is free of charge.

Scenarios

Scenario Description
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.