Configuring a Known Attack Source Rule

If WAF blocks a malicious request by IP address, Cookie, or Params, you can configure a known attack source rule to let WAF automatically block all requests from the attack source for a blocking duration set in the known attack source rule. For example, if a blocked malicious request originates from an IP address and you set the blocking duration to 500 seconds, WAF will block the IP address for 500 seconds after the known attack source rule takes effect.

Prerequisites

A website has been added to WAF.

Constraints

Specification Limitations

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. Click in the upper left corner and choose Web Application Firewall (Dedicated) under Security.
  4. In the navigation pane, choose Website Settings.
  5. In the Policy column of the row containing the target website, click the number to go to the policy configuration page.
  6. In the Known Attack Source configuration area, change Status if needed and click Customize Rule to go to the Known Attack Source page. Figure 1 shows an example.

    Figure 1 Known Attack Source configuration

  7. In the upper left corner of the known attack source rules, click Add Known Attack Source Rule.
  8. In the displayed dialog box, specify the parameters by referring to Table 1. Figure 2 shows an example.

    Figure 2 Add Known Attack Source Rule
    Table 1 Known attack source parameters

    Parameter

    Description

    Example Value

    Blocking Type

    Specifies the blocking type. The options are:

    • Long-term IP address blocking
    • Short-term IP address blocking
    • Long-term Cookie blocking
    • Short-term Cookie blocking
    • Long-term Params blocking
    • Short-term Params blocking

    Long-term IP address blocking

    Blocking Duration (s)

    The blocking duration must be an integer and range from:

    • (300, 1800] for long-term blocking
    • (0, 300] for short-term blocking

    500

    Rule Description

    A brief description of the rule. This parameter is optional.

    None

  9. Click Confirm. You can then view the added known attack source rule in the list.

    Figure 3 Known attack source rules

Other Operations