Both Anti-DDoS Pro and Anti-DDoS Premium allow you to create scenario-specific custom policies. A scenario-specific custom policy allows you to choose a scenario-specific template for high-traffic scenarios, such as new business launches and Double 11. You can create custom policies based on your business needs.

Background information

Notice In the top navigation bar of the Anti-DDoS Pro or Anti-DDoS Premium console, you can switch the region (Mainland China and Outside Mainland China), and the system switches between Anti-DDoS Pro and Anti-DDoS Premium accordingly for you to manage and configure Anti-DDoS Pro or Premium instances. Ensure that you switch to the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.

Scenario-specific templates are available when you create a custom policy. When you create a custom policy, you must select a template and specify a target to apply the policy. Currently, the target must be a domain name. A custom policy is valid only during the specified validity period. During the validity period, the custom policy takes precedence over standard protection policies.

Notice
  • If no traffic surge happens, we recommend that you use standard protection policies instead of custom policies.
  • Custom policies are available only for the latest versions of Anti-DDoS Pro and Anti-DDoS Premium. If you want to create custom policies, we recommend that you update to the latest version of Anti-DDoS Pro or Anti-DDoS Premium.

Policy Template

Only the Important Activity template is available. We are working on support for more policy templates.

Example

If a major activity is held on a website, a large number of requests are sent to visit the website. As a result, the throughput performance will vary. In this case, if you use the anti-DDoS protection policy of the normal level, false positives may occur. We recommend that you configure the Important Activity policy on the Custom Policies page. The Important Activity policy automatically adjusts the anti-DDoS protection policies during the specified period. Anti-DDoS protection policies are adjusted based on the following rules:
  • At the beginning of an activity, the Important Activity policy records the status of the Intelligent Protection and Frequency Control policies and automatically disables them to avoid false positives.
  • At the end of the activity, the Important Activity policy restores the configurations of these policies.
  • If you enable these policies during an activity, the manual configuration takes precedence.

Procedure

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select the region of your Anti-DDoS instance.
    • Mainland China: Anti-DDoS Pro
    • Outside Mainland China: Anti-DDoS Premium
  3. In the left-side navigation pane, choose Mitigation Settings > Custom Policies.
  4. On the Custom Policies page, click Create Policy.
  5. In the Custom Policies dialog box, specify the required parameters and then click Confirm.Create custom policies for specific scenarios
    Parameter Description
    Policy Name The name of the policy.
    Policy Template The template that you want to apply to the policy. Set the value to Important Activity.
    Validity Period The validity period of the policy.
    Note The validity periods of policies to which the same policy template is attached must not overlap.
    After a policy is created, the policy is automatically applied. You can view the policy on the Custom Policies page and check Status of the policy to determine whether the policy takes effect. Different states are described as follows:
    • Pending Enabled: indicates that a policy is pending enabled. The current time is earlier than the start time of the specified validity period.
    • Updating: indicates that a policy is expected to take effect. The process requires one or two minutes to complete.
    • Running: indicates that a policy is valid. The current time is within the specified validity period.
    • Expired: indicates that a policy has expired. The current time is not within the specified validity period.
    • Disabled: indicates that a policy is disabled. The policy does not take effect even if the current time is within the specified validity period.
  6. In the custom policy list, find the new policy and click Configure Policy in the Actions column.Configure Policy
  7. In the list of domain names that are protected by Anti-DDoS Pro or Anti-DDoS Premium, select one or more domain names to which you want to apply the policy and click OK.Select the target domain
    After a policy is applied, the information in the Protection Target column is automatically updated. You can move the pointer over the protection target to view the domain name to which the policy is applied.Protected objects

What to do next

You can enable, disable, edit, or delete custom policies on the Custom Policies page based on your business needs.