doc-exports/docs/waf/umn/waf_01_0094.html
Li, Qiao aa799a8b98 waf umn 1115
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>
2022-11-16 14:34:55 +00:00

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:

Prerequisites

  • Login credentials have been obtained.
  • The domain name to be protected has been added.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Choose Security > Web Application Firewall > Domains. Figure 1 shows an example.

    Figure 1 Domains page

    In the upper part of the domain name list, click Quota details to view the domain name quota.

  4. In the Name column, click the target domain name to go to the basic information page.
  5. Click next to the template name in the row where Alarm Page locates.

    Figure 2 Modifying Alarm Page

  6. 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.
      Figure 3 Default alarm page
    • If Custom is selected for Page Template, configure the parameters as needed. Table 1 describes the parameters.
      Figure 4 Custom alarm page
      Table 1 Parameters for the custom alarm page

      Parameter

      Description

      HTTP Return Code

      Return code configured on a custom page

      Block Page Type

      The options are text/html, text/xml, and application/json.

      Page Content

      Configure the page content based on the page type specified in Block Page Type.

    • 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:

      Figure 5 Redirection alarm page

  7. Click OK.