All Products
Search
Document Center

Anti-DDoS:Create custom mitigation policies for specific scenarios

Last Updated:Mar 31, 2026

Use a scenario-specific policy to temporarily replace your standard mitigation settings during planned high-traffic events—such as new service launches, shopping festivals, or stress tests—so that legitimate traffic is not blocked by false positives.

How it works

A scenario-specific policy applies a predefined template to one or more of your protected assets (domain names or IP addresses) for a specified time window. While the policy is active, it overrides the standard mitigation policy on those assets. When the validity period ends, the standard policy resumes automatically.

Available templates

Only the Important Activity template is currently available. More templates will be provided in the future.

When you apply the Important Activity template, Anti-DDoS Proxy adjusts protection as follows:

  • At the start of the validity period: Saves the current configurations of Intelligent Protection and Frequency Control, then disables both features to prevent false positives caused by sudden traffic increases.

  • During the validity period: If you manually re-enable either feature, your manual configuration takes effect immediately.

  • At the end of the validity period: Restores the saved configurations of Intelligent Protection and Frequency Control.

Important

Use scenario-specific policies only when you expect significant traffic surges. For normal traffic conditions, keep your standard mitigation policy active.

Prerequisites

Before you begin, ensure that you have:

  • An Anti-DDoS Pro or Anti-DDoS Premium instance

  • Domain names or IP addresses already added to the instance

Create a scenario-specific policy

  1. Log on to the Anti-DDoS Proxy console.

  2. In the top navigation bar, select the region of your instance:

    • Anti-DDoS Proxy (Chinese Mainland): Select Chinese Mainland.

    • Anti-DDoS Proxy (Outside Chinese Mainland): Select Outside Chinese Mainland.

  3. In the left-side navigation pane, choose Mitigation Settings > Scenario-specific Policies.

  4. Click Create Scenario-specific Policy.

  5. In the Create Scenario-specific Policy dialog box, configure the following parameters, then click OK. After you click OK, the policy is created and automatically enabled. The policy appears on the Custom Policies page.

    ParameterDescription
    Policy NameA name for the policy.
    Policy TemplateThe template to apply. Set this to Important Activity.
    Validity PeriodThe time window during which the policy is active. If you apply the same template to multiple policies, their validity periods must not overlap.

    Create Scenario-specific Policy dialog box

  6. In the policy list, find the newly created policy and click Configure Policy in the Actions column.

    Configure Policy button in the policy list

  7. Select the domain names or IP addresses to protect with this policy, then click OK. The Protection Target column updates automatically to reflect the assigned assets. Hover over the number in the column to see the full list.

    Note

    For websites added using a domain name, select the domain name. For Layer 4 services added using an IP address, select the IP address.

    Select assets dialog box

    Protection target column showing assigned assets

Policy states

After creation, check the Status column on the Custom Policies page to monitor your policy.

StatusDescription
Pending EnabledThe policy is not yet active. The current time is before the start of the validity period.
UpdatingThe policy is being applied. This process takes one to two minutes.
RunningThe policy is active. The current time is within the validity period.
ExpiredThe validity period has ended. The policy is no longer in effect.
DisabledThe policy is disabled and does not take effect, even if the current time is within the validity period.