Adding a Policy

A policy is a combination of rules, such as basic web protection, blacklist, whitelist, and precise protection rules. A policy can be applied to multiple domain names, but only one policy can be used for a domain name. This topic describes how to add a policy to your WAF instance.

If you have enabled enterprise projects, you can select your enterprise project from the Enterprise Project drop-down list and add protection policies in the project.

Prerequisites

You have selected Cloud mode or Dedicated mode for website deployment.

Specification Limitations

This function is unavailable in the detection and standard (former professional) editions.

Constraints

A protected website domain name can use only one policy.

Procedure

  1. Log in to the management console.
  2. Go to the Policies page by following the steps shown in Figure 1.

    Figure 1 Access to the Policies page

  3. In the upper left corner, click Add Policy.
  4. In the displayed dialog box, enter a policy name. Then click OK. If Policy added successfully is displayed in the upper right corner of the page, the policy is created.
  5. In the Policy Name column, click the policy name. On the displayed page, add rules to the policy by referring to Rule Configurations.

Other Operations

  • To modify a policy name, click next to the policy name. In the dialog box displayed, enter a new policy name.
  • To delete a rule, click Delete in the row containing the rule.