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:

Guides

Trigger Path Setup

Learn how to correctly configure trigger paths with wildcards and pattern matching.

Custom Cache Time

Set custom cache durations for specific file extensions.

Redirect Hostname

Redirect your b-cdn.net hostname to a custom domain.

Direct IP Origin

Connect directly to an origin IP with a custom hostname.

Reference

Dynamic Variables

Complete list of variables available in Edge Rule actions.

Variable Expansion

Use variable expansion syntax to create dynamic rule values.

Rule Ordering

Control execution order and understand rule priority.

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.