Best CDN WAF Solutions for Multi-CDN Setups
Compare 7 CDN WAF solutions for multi-CDN setups, the security gaps that split traffic creates, OWASP coverage and rule syncing.

Key Takeaways
- Two CDNs mean two WAFs, and they drift apart. The same request can be blocked on one CDN and allowed on the other.
- No CDN sees all your traffic, so an attack split across CDNs can stay under every CDN's limits.
- A WAF in front of your origin sees everything, but it adds a hop, extra latency and a single point of failure.
- One WAF policy enforced inside every CDN keeps protection the same everywhere without adding a hop.
- When you compare CDN WAF solutions, ask whether each one protects traffic that another CDN delivers.
{{promo}}
A second CDN makes your site faster and harder to take down. It also splits your security in two.
Every CDN comes with its own web application firewall (WAF), and each one sees only the traffic its own CDN delivers. With one CDN, that's fine. With two, you get two new problems. Your firewalls stop agreeing with each other, and none of them sees a whole attack.
This post explains both problems, the three ways teams try to solve them, and how seven CDN WAF solutions handle a multi-CDN setup.
Problem 1: Two WAFs Never Agree
You can write the same WAF rules on both CDNs and still get different results. Each vendor builds its WAF differently:
- Rule versions differ. Many CDN WAFs start from the OWASP Core Rule Set, but each vendor ships its own version. Some build on versions the project has retired, with their own updates on top.
- Sensitivity differs. Each vendor sets its own threshold for when a suspicious request gets blocked.
- Inspection depth differs. Cloudflare Enterprise reads up to 128 KB of a request body. AWS WAF on CloudFront reads 16 KB by default.
- Starting modes differ. Some WAFs start new rules in a log-only mode and block nothing until you switch them on.
Here is what that looks like. An attacker hides an injection payload deep inside a large request. The first CDN reads far enough to find it and blocks the request. The second stops reading early and lets it through. Half your traffic is protected, and the attacker only needs the other half.

The gap grows over time. A new vulnerability comes out, and your team adds an emergency rule on one CDN but forgets the other. Or a CDN has an outage, and traffic fails over to the backup, which runs looser rules. Our guide to the best DDoS mitigation solutions covers that failover risk in more detail.
Infrastructure as code helps only a little. Terraform can track every change to your WAF rules, but it can't translate one vendor's rules into another's. Someone still writes every rule twice.
Problem 2: No CDN Sees the Whole Attack
Rate limits and layer 7 DDoS protection both work by counting. When one source sends too many requests, the WAF blocks it. In a multi-CDN setup, each CDN can only count what it serves.
Take a simple rate limit: block any IP address that sends more than 100 requests a minute. An attacker sends 80 a minute through CDN A and 80 through CDN B. Your origin gets 160 a minute from that address. Each CDN counts 80, so neither one blocks anything.

A layer 7 DDoS attack works the same way at a larger scale. Thousands of bots send requests that look ordinary. Split across two CDNs, each CDN sees only part of the flood. If each part stays under that CDN's thresholds, no CDN treats it as an attack, and your origin takes the full load.
The attacker doesn't even need to know you run two CDNs. Your traffic steering splits the requests for them.
Three Ways to Protect Traffic Across Several CDNs
There are three places to put the WAF. Each one fixes a different part of the problem.

Use Each CDN's Own WAF
This is where most teams start. Each CDN WAF runs inside a network that already carries your traffic, so it adds no hop and takes little effort to turn on. But you keep both problems: two policies to keep in sync, and two partial views of every attack.
If you go this way, a few habits help. Keep one plain-language policy as the source of truth, and map it onto each CDN. Test new rules in log-only mode before you block. Send WAF logs from every CDN to one place so you can compare decisions. And check your tuning again after every vendor rule update.
Put One WAF in Front of Your Origin
The second option is a single WAF that every request passes through on its way to your servers. It can be an appliance, such as F5 BIG-IP Advanced WAF. Or it can be a standalone cloud WAF: a proxy with its own network, placed between your CDNs and your origin.
Because every request to your origin goes through it, it sees the whole attack and applies one policy. That fixes both problems. The cost is what it does to your delivery path:
- An extra hop. Every request that isn't served from cache makes one more stop.
- Extra latency. That stop slows the requests users wait on most, like logins, checkouts and API calls.
- A single point of failure. If the WAF goes down or gets overwhelmed, your site goes down, however many CDNs you run.
You added a second CDN so that no single provider could take you offline. One WAF in front of your origin brings that risk back.
Agents on your own servers are a variant. They see every request without a network hop, but they add work to every request your servers handle.
Run One WAF Engine Inside Every CDN
The third option puts the same WAF engine inside each CDN's edge compute. You write the policy once, and it runs on every CDN. Both CDNs make the same decision on the same request, and protection follows traffic when steering moves it.
The CDNs are already in the path, so there's no new hop and no new single point of failure. Each CDN still enforces the policy on the traffic it serves. To spot an attack spread across CDNs, you also want every CDN's security logs in one place, in one format. The cost is edge compute: running code at the edge can add charges from each CDN.
Whichever option you choose, lock your origin down. If it accepts requests from anywhere, an attacker can skip your CDNs and their WAFs and go straight to it. Allow only the address ranges of the CDNs, or the WAF proxy, in front of it.
The 7 Best CDN WAF Solutions Compared
Most CDN WAF products only protect the traffic their own CDN carries. For a multi-CDN setup, the first question is whether a product can protect traffic that another CDN delivers. The second is what it adds to your path.
1. IO River Unified Security
IO River runs one WAF engine inside the edge compute of every CDN you connect. You define rules and rate limits once, and every CDN enforces them, so a request gets the same decision wherever it lands. Protection follows traffic when steering moves it, and nothing new sits in the path. The engine is Check Point's machine-learning WAF with IPS signatures, and security logs from every CDN stream in the same format. Edge compute can add charges from your CDNs.

2. Akamai App & API Protector
Akamai's WAF comes with layer 7 DDoS defense, bot controls and API discovery. Its Hybrid edition, launched in April 2025, extends the same policy beyond Akamai's edge to other clouds and CDNs. Ask Akamai how Hybrid would be deployed in your setup, since that decides whether it adds a hop.
3. Fastly Next-Gen WAF
Fastly's WAF runs on Fastly's edge, as agents on your servers, as a reverse proxy or as a cloud service. The options outside Fastly's edge can inspect traffic from any CDN, so one policy covers all of them. Check how each mode fails, though: in Fastly's module setup, traffic gets through if the agent breaks, while its reverse proxy stops traffic.
4. Check Point CloudGuard WAF
Check Point's WAF uses contextual AI rather than signatures, plus IPS protection for over 2,800 known web vulnerabilities. It runs as a cloud reverse proxy or as agents on your servers, so it works behind any CDN. As a proxy, it adds a hop. It is also the engine inside IO River.
5. Cloudflare WAF
Cloudflare offers managed rules, custom rules, rate limiting and a machine-learning attack score. It protects only traffic that goes through Cloudflare, so in a multi-CDN setup it covers Cloudflare's share and nothing else. Pro costs $20 a month and Business $200, billed annually.
6. AWS WAF with CloudFront
AWS WAF runs in every CloudFront edge location, and CloudFront can sit in front of origins outside AWS. It still only inspects traffic that passes through AWS. Pay-as-you-go pricing is $5 per web ACL and $1 per rule a month, plus $0.60 per million requests.
7. Azure Front Door WAF
Azure copies each WAF policy to every Microsoft edge location, but it only protects Front Door traffic. On current Front Door tiers, managed rules need Premium, which includes the WAF in its price.
{{promo}}
Conclusion
Running several CDNs makes delivery more resilient, but only if your security keeps up. Separate CDN WAFs drift apart, and each one sees only part of an attack. A single WAF at the origin sees everything, but it brings back the single point of failure you added CDNs to avoid. One policy enforced inside every CDN keeps protection the same wherever traffic lands, with nothing new in the path. Whatever you choose, judge it by one question: does protection follow your traffic from one CDN to the next?
FAQs
Does each CDN need its own WAF?
Not necessarily. Each CDN's built-in WAF sees only the traffic that CDN delivers, so using them all means running several policies that drift apart. Instead, you can run a WAF that inspects every path, such as agents on your servers. Or you can run one engine on every CDN's edge, which is IO River's approach.
Can a WAF slow down page delivery?
A little, depending on where it runs. A WAF inside a CDN that already carries your traffic mostly adds processing time, and more active rules mean more work per request. A WAF in front of your origin adds a network hop to every uncached request, which users feel most on logins, checkouts and API calls.
How are WAF false positives handled across providers?
One provider at a time. Cloudflare uses exceptions, AWS recommends count mode, Azure uses exclusions and Fastly uses signal exclusions. With several CDNs, every fix has to be repeated on each one and kept in sync. Test new rules in log-only mode on real traffic, so false positives show up before anything gets blocked.
Is a CDN WAF enough for API protection?
No. A CDN WAF stops injection, brute force and abusive traffic, the request-level risks in the OWASP Top 10. It can't fix flaws in your code's logic, such as broken authorization, the top risk in the OWASP API Security Top 10. That is why WAFs have grown into web application and API protection platforms.
Who owns WAF tuning in a multi-CDN setup?
Your team does. Vendors maintain their managed rules, but the modes, exceptions and custom rules are yours on every CDN. In practice, one security owner should hold a single policy and approve each change. The platform team then applies it to every provider, so a fix on one CDN is never missing on another.




