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.
Log on to the ESA console, and in the left-side navigation pane, choose .
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.Specify Type for the list. For example, select IP Address/CIDR Block.
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.
Log on to the ESA console, and in the left-side navigation pane, choose .
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.Then, specify Page Type. For example, select
text/html.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.
In the ESA console, choose Websites and click the name of the website you want to manage.
In the left-side navigation pane, choose . On the WAF page, click the Custom Rules tab. Click Create Rule. On the Create Custom Rule page, specify Rule Name.
In the If requests match... section, select Client IP as the match type, select is in list as the match condition, and select
testin the input field.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.
