Skip to main content
Edge Rules allow you to create powerful custom behaviors for your pull zone, such as redirects, header modifications, cache time overrides, or origin changes based on incoming request data.

How to access Edge Rules

1

Navigate to your Pull Zone

Go to CDN in the dashboard and select the pull zone you want to configure.
2

Open Edge Rules

Click on the Edge Rules tab in the pull zone settings.
3

Add a new rule

Click Add Edge Rule to create a new rule with your desired action and trigger conditions.

What can Edge Rules do?

Edge Rules support a variety of actions that execute at different layers of the CDN:
ActionDescription
Force SSLRedirect HTTP requests to HTTPS
Redirect to URLRedirect requests to a different URL
Change Origin URLRoute requests to a different origin server
Override Cache TimeSet custom cache duration for matching requests
Block RequestBlock requests that match certain conditions
Set Response HeaderAdd or modify response headers
Set Request HeaderAdd or modify headers sent to the origin
Force DownloadForce the browser to download the file
Disable/Enable Token AuthenticationControl token authentication per request
Override Browser Cache TimeSet custom browser cache duration
Set Network Rate LimitLimit bandwidth for matching requests

Guides

Reference

Need more power?

For complex request and response transformations that go beyond what Edge Rules can offer, consider using Middleware Scripts. Middleware scripts allow you to write custom code that executes at the edge, giving you full programmatic control over request handling, response modification, and routing logic.