All Products
Search
Document Center

Edge Security Acceleration:Configure custom rules

Last Updated:Dec 25, 2025

You can use custom rules to address specific requirements or use cases.

Create a custom rule

  1. In the ESA console, choose Websites. In the Website column, click the target site.

  2. In the navigation pane on the left, choose Traffic > Load Balancing. Click Edit for the target load balancer.

    image

  3. On the Configure Custom Rule tab, click Create Custom Rule.

    image

  4. Enter a Rule Name. In the If requests match... section, select a field and its properties.

    Note
    • The expression builder includes many common request features. You can select request matching rules and generate expressions as needed.

    • An accelerated domain name can route requests to different origins based on the URI path.

    • From the match type drop-down list, select a match field.

    • From the operator drop-down list, select a match operator.

    image

  5. In the Then execute... section, select Respond with Specified Content or Override.

    image

    Project

    Item

    Description

    Respond with specified content

    Response status code

    Optional. The default value is 200.

    Content-Type

    Optional. The default value is application/octet-stream.

    Location

    Optional. By default, this HTTP header is not included in the response. The maximum size is 1024 bytes.

    Body

    Optional. The default value is empty, which means the HTTP body is empty. The maximum size is 1024 bytes.

    Override load balancer configuration

    Origin pool

    Specify the origin pool.

    Fallback origin pool

    Specify the fallback origin pool.

    Load balancing policy

    Specify the traffic steering policy.

    Session persistence

    Enable or disable session persistence.

    Primary region pool

    A global region-level origin pool.

    Secondary region pool

    A region-level origin pool within the corresponding primary region.

    Load balancer TTL

    Controls the time that a data packet can exist in the network.

    Stop

    Stops matching and executing custom rules for the load balancer.

    Note

    Rules are executed according to their ordinal number, from lowest to highest. If a rule with the Stop action is matched, no further custom rules are processed.

  6. Click OK.