All Products
Search
Document Center

Edge Security Acceleration:Create a list and create a custom error page in a custom rule

Last Updated:Apr 30, 2025

Edge Security Acceleration (ESA) rules enable you to create a list, custom a block page, and apply a rule to reference them.

Create a list

When you configure rules, you can directly reference the defined listed parameters.

  1. Log on to the ESA console, and in the left-side navigation pane, choose Global Settings > Lists.

  2. On the Lists page, click Create List. In the Create List dialog box, enter a name in the List Name field. In this example, we use test.

  3. Specify Type for the list. For example, select IP Address/CIDR Block.

  4. Enter an IP address, such as the IP address of your local server, in the input field and click OK.

Create a custom error page

ESA provides a default error page 403. In this example, a custom error page is created and applied in the blocking rule.

  1. Log on to the ESA console, and in the left-side navigation pane, choose Global Settings > Custom Pages.

  2. On the Custom Pages page, click Create Custom Page. On the Create Custom Page page, enter a page name in the Page Name field. In this example, we use test.

  3. Then, specify Page Type. For example, select text/html.

  4. Edit the content in Source Code and click OK.

Reference the list and the custom error page

Customize a blocking rule to reference the list and the page you just created.

  1. In the ESA console, choose Websites and click the name of the website you want to manage.

  2. In the left-side navigation pane, choose Security > WAF. On the WAF page, click the Custom Rules tab. Click Create Rule. On the Create Custom Rule page, specify Rule Name.

  3. In the If requests match... section, select Client IP as the match type, select is in list as the match condition, and select test in the input field.

  4. In the Then execute... section, select Block for Action, select test for Error Page, change the value of Status Code to 400, and then click OK.

Verify your setup

Enter your accelerated domain name in your DNS record to perform an access test. The response code returned is the same as the expected one.

image