forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
9.4 KiB
9.4 KiB
Modifying the Alarm Page
If a visitor triggers block by WAF, the Default block page of WAF is returned by default. You can also configure Custom or Redirection for the block page to be returned as required.
- Custom: The content of the text/html, text/xml, and application/json pages can be configured on the custom block page to be returned.
- Redirection: The root domain name of the redirection address must be the same as the currently protected domain name, including a wildcard domain name. For example:
- If the protected domain name is www.example.com and the port number is 8080, the redirection URL can be set to http://www.example.com:8080/error.html.
- If the protected wildcard domain name is *.example.com and the port number is 8080, the redirection URL can be set to http://*.example.com:8080/error.html.
Prerequisites
- Login credentials have been obtained.
- The domain name to be protected has been added.
Procedure
- Log in to the management console.
- Click
in the upper left corner of the management console and select a region or project.
- Choose Security > Web Application Firewall > Domains. Figure 1 shows an example.
- In the Name column, click the target domain name to go to the basic information page.
- Click
next to the template name in the row where Alarm Page locates.
- In the Alarm Page dialog box, select a template in the Page Template field.
- If Default is selected for Page Template, the block page with the built-in HTTP return code 418 is returned by default.
- If Custom is selected for Page Template, configure the parameters as needed. Table 1 describes the parameters.
- If Redirection is selected for Page Template, configure the redirection URL as prompted.
The root domain name of the redirection URL must be the same as the currently protected domain name, including a wildcard domain name. Examples:
- If the protected domain name is www.example.com and the port number is 8080, the redirection URL can be set to http://www.example.com:8080/error.html.
- If the protected wildcard domain name is *.example.com and the port number is 8080, the redirection URL can be set to http://*.example.com:8080/error.html.
- Click OK.
Parent topic: Domain Management