Updated on 2024-03-14 GMT+08:00

Adding Rules to One or More Policies

This topic describes how to add rules to one or more policies.

If you have enabled enterprise projects, ensure that you have all operation permissions for the project where your WAF instance locates. Then, you can select the project from the Enterprise Project drop-down list and configure protection policies for the domain names in batches.

Prerequisites

A website has been added to WAF.

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 on the left, choose Policies.
  5. In the upper left corner of the policy list, click View All My Rules.
  6. In the upper left corner above a list of a type of rule, click Add Rule.
  7. Select one or more policies from the Policy Name drop-down list.
  8. Set other parameters.

    • To add a CC attack protection rule, see Table 1.
    • To add a precise protection rule, see Table 1.
    • To add a blacklist or whitelist rule, see Table 1.
    • To add a geolocation access control rule, see Table 1.
    • To add a WTP rule, see Table 1.
    • To add an information leakage prevention rule, see Table 1.
    • To add a global protection whitelist rule, see Table 1.
    • To add a data masking rule, see Table 1.

  9. Click Confirm.