If you have added the domain name of your website to CDN or Dynamic Route for CDN (DCDN) and Anti-DDoS Pro or Anti-DDoS Premium, you can enable CDN or DCDN interaction to protect the website. If no attacks occur, service traffic is directly forwarded to the nearest CDN or DCDN node for acceleration. If attacks occur, the traffic is automatically forwarded to Anti-DDoS Pro or Anti-DDoS Premium for scrubbing. Normal traffic is then forwarded to the origin server.
Prerequisites
- The domain name is added to CDN or DCDN. For more information, see Add a domain name for CDN (CDN) or Add a domain (DCDN).
For more information about the limits of interaction between CDN or DCDN and Anti-DDoS Pro or Anti-DDoS Premium, see Limits.
- An Anti-DDoS Pro or Anti-DDoS Premium instance with the Enhanced function plan is purchased, and your website is added to Anti-DDoS Pro or Anti-DDoS
Premium. For more information, see Add a website.
Notice The bandwidth and QPS of the Anti-DDoS Pro or Anti-DDoS Premium instance must meet protection requirements of your website. This ensures that the instance can process service traffic after the traffic is switched to Anti-DDoS Pro or Anti-DDoS Premium.
- The Anti-DDoS Pro or Anti-DDoS Premium instance can properly forward traffic. For more information, see Verify the forwarding configuration on your local machine.
Limits
Item | Limit |
---|---|
Service type | CDN or DCDN interaction applies only to HTTP and HTTPS services and does not support video live streaming. |
Service scenario |
|
Domain name status in CDN or DCDN | A CDN- or DCDN-accelerated domain name cannot be added to a sandbox.
Note If your domain name is added to a sandbox by CDN or DCDN, we recommend that you use
Anti-DDoS Pro or Anti-DDoS Premium and do not enabled CDN interaction.
|
Traffic switchover between CDN or DCDN and Anti-DDoS Pro or Anti-DDoS Premium | To enable CDN or DCDN interaction, you must configure a QPS threshold to trigger traffic
switchover between CDN or DCDN and Anti-DDoS Pro or Anti-DDoS Premium. The following
requirements must be met:
|
Procedure
What to do next
- Edit an interaction rule: Click the CDN/DCDN Interaction tab. Find the domain name whose rule you want to edit and click Edit in the Actions column to change Request per Second under Trigger Condition.
- Delete an interaction rule: Click the CDN/DCDN Interaction tab. Find the domain name whose rule you want to delete and click Delete in the Actions column.
Warning Before you delete an interaction rule, make sure that the service traffic is no longer directed to the CNAME address assigned by Sec-Traffic Manager. Otherwise, the website becomes unavailable after you delete the rule.