ESA rules let you define conditions that control when specific feature configurations take effect.
Use rules to apply configurations for specific needs such as request transformation, content redirection, or cache policies. Rules also support fine-grained security and traffic management. All rules share consistent syntax to filter requests by characteristics and apply the matching configuration.
Simple configuration examples
Redirect requests by region
Rule configuration structure
When a request reaches an ESA node, ESA filters and processes it based on your rule configuration.
Every ESA rule configuration includes two parts:
Rule configuration = Rule expression + Action
Configure a rule expression to filter requests and an action to run on matched requests. The expression syntax is consistent across all rule-related features in ESA, so you can reuse configurations across features. Rule expression structure.
Feature availability by plan
Feature category | Feature | Entrance ($0/month) | Pro ($15/month) | Premium ($249/month) | Enterprise (Contact sales for custom pricing) |
Maximum nested sub-conditions | 10 | 10 | 20 | 20 | |
Operator - regular expression | |||||
SSL/TLS rules, HTTPS rules (shared quota) | 10 | 25 | 50 | 125 | |
5 | 25 | 50 | 125 | ||
Rewrite URL, Modify outbound request headers, Modify outbound response headers | 10 | 25 | 50 | 125 | |
URL redirection | 10 | 25 | 50 | 125 | |
Cache eligibility, Browser cache TTL, Edge cache TTL, Status code cache TTL, Custom cache key | 10 | 25 | 50 | 125 | |
10(WebSocket configuration is not currently supported) | 25 | 50 | 100 | ||
File compression, Image optimization, Video processing (shared quota) | 10 | 25 | 50 | 100 | |
Rule limit | 10 | 25 | 50 | 125 | |