How Do I Deploy Both CDN and WAF for My Workloads?

After you deploy CDN and WAF for your website, traffic is accelerated by CDN and then forwarded to WAF. WAF checks received traffic and forwards only the normal traffic to the origin server. The combination protects the website against attacks while improving the website response speed and availability.

  • Cloud mode

    Point your website domain name to CDN and then change the CDN back-to-source address to the WAF CNAME record. After that, you can also add a WAF subdomain name and TXT record on your DNS management platform in case others have connected the website domain name to WAF before you configure CDN.

  • Dedicated mode

    Resolve the website domain name to CDN and change the CDN back-to-source IP address to the EIP bound to the load balancer configured for dedicated WAF instance.

  • ELB mode

    Resolve the website domain name to CDN and change the CDN back-to-source IP address to the EIP bound to the load balancer configured for the dedicated WAF instance.

For details about the combination of WAF and CDN, see Combine WAF and CDN: Better Protection and Faster Access