All Products
Search
Document Center

CDN:EdgeScript overview

Last Updated:Apr 01, 2026

EdgeScript (ES) lets you extend CDN behavior with lightweight scripts—writing custom logic directly at points of presence (POPs) when the standard CDN console settings aren't enough.

ES provides built-in variables, encapsulated functions, and decision-making statements that CDN nodes recognize natively. Combine these building blocks to cover most custom configuration needs: authentication, caching, throttling, header manipulation, and more.

Customize Alibaba Cloud CDN configurations7

For reference documentation on each building block, see:

Billing

ES is free of charge.

Use cases

Authentication logic — Prevent hotlinking in VOD and live streaming scenarios by authenticating requests based on parameters, cookies, or algorithms. Custom authentication logic reinforces protection for resources on your origin server.

Request and response headers — Modify request and response headers to match your business requirements.

URL rewriting and redirection — Redirect requests to language-specific URLs. For example, redirect requests requiring English or German content from the China site to the appropriate regional site.

A/B testing — Route requests with different headers or URLs to different origin servers to trigger different features before a full release.

Custom caching — Create caching rules when standard time-to-live (TTL) values or cache expiration rules don't fit your use case.

Request throttling — Apply per-user throttling rules, for example to differentiate between free and paying users.

Request blocking — Block requests from specific IP addresses, apply region-based filtering, or set anti-bot policies to protect your resources from bots.