Which CDN actually protects your site from DDoS attacks?

Seven CDNs compared on one question: which plan keeps your site up during an attack, and who pays for the traffic?

Short answer: Cloudflare for most sites, because DDoS protection is unmetered even on the free plan. Amazon CloudFront if you're on AWS and want a fixed bill, Bunny.net for a cheap European option, Azure Front Door if your stack lives in Azure. A CDN absorbs traffic floods before they hit your server, but real protection comes down to three things: network DDoS mitigation, a web application firewall (WAF) and rate limiting. We compared all seven on those three, plan by plan, with prices.

Pick in one line. Blog or marketing site: Cloudflare Free. Online store: Cloudflare Pro or a CloudFront Pro plan. WordPress login under fire: Sucuri or a Cloudflare rate limit. Heavy traffic on AWS: CloudFront Business.

Romain CochardCEO of Hack'celeration
Updated 20267CDNs compared3protections checked per plan2026prices read on official pages

The ranking is editorial: a sponsored spot is always labeled on its card, and no affiliate link changes a score.

The table that decides

Who actually protects you, and on which plan?

DDoS attacks come in two flavors. Network attacks (layers 3 and 4) throw raw packets at you, and nearly every CDN blocks them for free. Application attacks (layer 7) send real HTTP requests to expensive pages like search or login, and you need a WAF plus rate limiting to stop them. That's where plans split, and where the pay-as-you-go bill can bite.

Good news for small sites: in Cloudflare's H1 2026 report, 96.62% of network-layer attacks stayed under 500 Mbps. The score out of 5 is for the whole CDN, the same as in our best CDN ranking; the rank follows protection quality.

DDoS, WAF and rate limitingPlan and entry price for protection
CloudflareUnmetered DDoS from FreeUnmetered DDoS protection on every plan. WAF with free managed ruleset from Free. Rate limiting: 1 rule on Free, 2 on Pro, 5 on Business.Free $0. Pro $20/mo billed yearly ($25 monthly). Business $200/mo billed yearly ($250 monthly), with a 100% uptime SLA.
Amazon CloudFrontFlat-rate, no overagesAlways-on DDoS protection on every flat-rate plan; advanced DDoS on Business and Premium. 5 to 75 WAF rules.Free $0, Pro $15, Business $200, Premium $1,000 per month. No overage charges, even during attacks.
Bunny.netBunny Shield firewallShield Basic is free with a basic WAF ruleset and 2 rate limits. Expert-managed DDoS rules on paid plans.Basic free. Advanced $9.50/mo (10 rate limits). Business $99/mo (25). Requests above quota billed per million.
Azure Front DoorWAF bundled in PremiumBasic security on Standard with custom WAF rules. Managed WAF rules and bot protection included on Premium.Standard $35/mo, Premium $330/mo base fee, plus data transfer.
SucuriWAF plus CDNWebsite firewall with CDN, blocking layer 3, 4 and 7 DDoS attacks. Built with WordPress in mind.Basic $9.99/mo, Pro $19.98/mo, one site.
GcoreWAAP sold separatelyPay-as-you-go CDN. The WAAP firewall is a separate product with a free tier to start.CDN: 1 TB free monthly, then €0.01/GB. WAAP billed per million requests, €2 down to €1 ex. VAT by plan.
FastlyDDoS billed per requestDDoS Protection add-on billed by request volume. Next-Gen WAF sold through sales.DDoS: 500,000 free requests monthly, then $1 per 10,000. CDN: 100 GB free, then $0.12/GB.

Prices exclude tax and were read on each vendor's official pricing page in 2026. Gcore lists its prices in euros.

1
Best overall for DDoS protection

Cloudflare

4.6/5

Cloudflare doesn't meter DDoS mitigation: it's unlimited on Free, Pro, Business and Enterprise, with no surprise charge on attack day. The WAF and a free managed ruleset are included even on the free plan. For most small sites, that's the whole answer for $0.

Where Free runs thin is rate limiting. You get one rule, counting over 10 seconds and blocking for 10 seconds. Pro gives you 2, Business 5. Spend your single rule on the login or search endpoint, where layer 7 attacks hurt most. On WordPress, add a firewall rule that blocks /xmlrpc.php: it's a favorite target and blocking it costs nothing.

Two gotchas from the forums. "I'm Under Attack" mode challenges every visitor for a few seconds and breaks RSS feeds and API clients, so use it during an attack, not as a default. And the stories of sites riding out huge attacks rarely come from free accounts: with no chat support and no SLA below Business, you're on your own at the worst moment.

Standout features
  • Unmetered DDoS on every plan
  • WAF and managed rules from Free
  • 1, 2 or 5 rate limiting rules by plan
  • 100% uptime SLA from Business
+Pros
  • ✓$0 covers most sites
  • ✓Setup is a nameserver change
  • ✓Under Attack mode in one click
−Cons
  • ✗Only one rate limiting rule on Free
  • ✗Forum support on Free, tickets on Pro, no chat below Business
Verdict

Our first pick for almost everyone. Move to Pro once revenue depends on the site. Thinking of leaving? See Cloudflare alternatives.

See Cloudflare plans →
2
Best for a predictable bill during attacks

Amazon CloudFront

3.9/5

Shield Standard protects availability, not your bill. It's free, always on and handles network-layer floods. On pay-as-you-go pricing, though, every request in a layer 7 attack is billed. One developer wrote up a $4,500 bill after a request loop; an AWS re:Post thread describes roughly $200 extra per month from suspicious traffic.

The flat-rate plans fix that. Free (1M requests, 100 GB, 5 WAF rules), Pro at $15 (10M requests, 50 TB, 25 rules), Business at $200 (125M requests, 50 TB, 50 rules), Premium at $1,000 (500M requests). No overage charges, even during attacks. Advanced DDoS protection starts at Business.

Above that, Shield Advanced costs $3,000 a month per payer account with a one-year commitment, plus data transfer fees. It adds the managed layer 7 DDoS rule and access to the Shield Response Team, which requires Business or Enterprise support. That's an enterprise purchase, not an SMB one.

Standout features
  • No overage charges on flat-rate plans
  • Always-on DDoS, advanced from Business
  • 5 to 75 WAF rules by plan
  • Shield Advanced for large accounts
+Pros
  • ✓Fixed cost you know in advance
  • ✓Huge AWS edge network
  • ✓Fits the rest of your AWS account
−Cons
  • ✗Console is more technical than Cloudflare
  • ✗Shield Advanced is $3,000/mo with a 1-year commitment
Verdict

The right call if you already run on AWS: pick a flat-rate plan, never pay-as-you-go, and the bill stays put. Weighing a move? See AWS alternatives.

See CloudFront plans →
3
Best budget pick with a firewall

Bunny.net

4.4/5

Bunny.net charges for CDN by volume, from $0.01 per GB in North America and Europe, with a $1 monthly minimum. Protection comes from Bunny Shield, a layer you switch on per zone. Basic is free: a basic WAF ruleset, 2 rate limiting rules and simple bot detection, with a Bunny-branded block page.

The real threshold is Advanced at $9.50 a month: 10 rate limits, 10 custom rules and expert-managed DDoS rules. Business at $99 a month goes to 25 rules. Inspected requests are capped per plan and billed per million beyond that ($0.70 on Basic, $0.65 on Advanced), so watch that counter during a layer 7 attack.

Field reports are mixed. One user on maximum protection says not a single attack request reached the origin. A blog host, on the other hand, moved from Bunny to Cloudflare after Tor-based attacks, because useful filtering needed the paid tier. Bunny is a great CDN with excellent support and a security layer that keeps improving.

Standout features
  • Shield Basic free with basic WAF
  • Managed DDoS rules from $9.50
  • Pay-per-GB CDN, no subscription
  • Highly rated support
+Pros
  • ✓Cheapest full-featured CDN here
  • ✓European vendor
  • ✓Clear pricing, no commitment
−Cons
  • ✗Useful layer 7 filtering needs Advanced
  • ✗Requests beyond quota are billed
Verdict

A great pick if you want low cost and fast support. Upgrade to Advanced once a form on your site attracts bots.

See Bunny Shield →
4
Best fit for Azure shops

Azure Front Door

3.5/5

Azure Front Door comes in two tiers. Standard costs $35 a month as a base fee and covers delivery with basic security, including custom WAF rules. Premium costs $330 a month and bundles the managed WAF rules and bot protection: Microsoft states that WAF pricing is included in Premium. Data transfer is billed on top.

The jump from $35 to $330 is the whole story. The managed rulesets, the ones that block known attack patterns without you writing anything, only live in Premium. On Standard, you write your own rules.

Our take: it makes sense if your apps are already in Azure and your team knows the portal. For a standalone site, Cloudflare Pro gives you managed rules for a fraction of the price.

Standout features
  • Custom WAF rules on Standard
  • Managed WAF and bot protection in Premium
  • Same bill and console as your Azure apps
+Pros
  • ✓Native to Azure
  • ✓Single vendor for hosting and edge
  • ✓Clear two-tier pricing
−Cons
  • ✗Managed rules only on Premium at $330/mo
  • ✗Data transfer billed on top
Verdict

Worth it for Azure-first teams on Premium. Everyone else gets more protection per dollar higher up this list.

See Front Door pricing →
5
Best for WordPress sites

Sucuri

3.6/5

Sucuri is a website firewall first, with a CDN on top. It says it blocks layer 3, 4 and 7 DDoS attacks over an Anycast network. The firewall costs $9.99 a month on Basic and $19.98 on Pro, per site; multi-site setups go through sales.

The appeal is rules already built for WordPress: login pages, xmlrpc.php and vulnerable plugins are covered without writing a rule. If you don't want to learn firewall syntax, it's the shortest path.

The downsides show up in reviews: false positives that throw "Access Denied" on your own admin, and support that several users call slow. Allowlist your IP on day one, and price it against Cloudflare Pro, which covers every subdomain.

Standout features
  • Layer 3, 4 and 7 DDoS blocking
  • WordPress-focused rules
  • Firewall and CDN in one plan
+Pros
  • ✓Zero tuning for WordPress
  • ✓Flat price per site
  • ✓Quick setup
−Cons
  • ✗False positives on the admin area
  • ✗Support called slow by several users
Verdict

The right pick for a WordPress site that wants protection without configuration. For hosting, see the best WordPress hosting.

See Sucuri firewall →
6
Cheapest at high volume

Gcore

4.1/5

Gcore gives you the first TB of CDN traffic free each month, then €0.01 per GB up to 500 TB, no subscription. That's the best volume price in this comparison. Security is sold separately: the pay-as-you-go CDN doesn't list a WAF or layer 7 filtering as included.

The firewall is called NextGen WAF (WAAP), with Free, Start, Pro and Enterprise tiers billed per million requests, from €2 down to €1 ex. VAT, plus €10 per domain on Pro, which has a 30-day trial. For whole networks, layer 3/4 DDoS protection costs €3.90 per Mbps of clean traffic, and attack size doesn't change the bill.

Our caveat: the WAAP pricing table is hard to read and per-plan quotas need a sales question. Ask for a cost estimate on your real traffic first.

Standout features
  • 1 TB of CDN free every month
  • WAAP firewall with a free tier
  • Network DDoS billed on clean traffic
+Pros
  • ✓Lowest volume price
  • ✓No CDN subscription
  • ✓Attack size doesn't raise network DDoS cost
−Cons
  • ✗Security sold separately
  • ✗WAAP pricing hard to read
Verdict

Good for big traffic on a budget. For a small site, Cloudflare Free does more for nothing.

See Gcore security pricing →
7
For engineering-heavy teams

Fastly

3.4/5

Fastly runs one of the fastest networks around, but its protection pricing is the hardest to predict. The DDoS Protection add-on includes 500,000 free requests a month, then costs $1 per 10,000 requests. In plain terms, the bigger the attack, the bigger that line can get, the opposite of Cloudflare or CloudFront flat-rate plans.

Next-Gen WAF has no public price. The CDN includes 100 GB and 1 million requests free per month per region, then $0.12 per GB in North America and Europe.

Our take: Fastly fits teams with a negotiated contract. For a small business, per-request DDoS pricing puts the attack risk on your invoice.

Standout features
  • Very fast network
  • Fine-grained configuration in code
  • DDoS billed by request volume
+Pros
  • ✓Top-tier performance
  • ✓Highly configurable
  • ✓Free tiers to start
−Cons
  • ✗DDoS cost scales with the attack
  • ✗No public WAF price
Verdict

For engineering teams with a contract. Everyone else will do better higher up.

See Fastly pricing →
Before you call it protected

The settings that actually keep you online

A badly wired CDN protects nothing. These six checks come from the field reports we went through. To pick a CDN on speed and price per TB, see the best CDN, and for a store, the best ecommerce CDN. Running your own box? See DDoS-protected dedicated servers.

Lock down your origin

The number one hole. If your server answers the whole internet, attackers find it through DNS history or certificate logs and go around the CDN. Get a new IP, then accept only the CDN's published ranges.

Know layer 3/4 from layer 7

Network DDoS mitigation is usually free. Application-layer protection rarely is. When a host says "DDoS protection included", ask whether it covers HTTP floods too.

Aim your rate limit

A rate limit counts requests from one address and blocks past a threshold. With one rule (Cloudflare Free), point it at login or search, not the whole site. Start loose and tighten using your logs.

Price the attack

On usage pricing, you pay for the attack. CloudFront pay-as-you-go, Fastly DDoS and Bunny requests above quota all count attack traffic. Cloudflare and CloudFront flat-rate plans don't.

Write the incident plan now

Note where emergency mode lives, who has access and which support channel answers. On free plans, that's often a forum. Know it before the attack.

Check what your CDN sees

To filter layer 7, the CDN terminates TLS and reads every request. If your forms carry sensitive data, keep the CDN on static assets or check the vendor's data processing terms.

  • Origin firewall only allows CDN IP ranges
  • Layer 7 is covered by a WAF
  • A rate limit guards your login page
  • You know whether attack traffic is billed
  • Emergency mode is documented
  • Direct subdomains like mail or ftp are removed

Is your tool missing from this page? Email us: hello@hackceleration.com

FAQ

Your questions on CDN DDoS protection

  • Does a CDN actually stop DDoS attacks?

    Yes for volumetric attacks, as long as your origin server only answers the CDN. The CDN soaks up the flood across its edge network and only clean traffic reaches you. If your origin IP still sits in an old DNS record, attackers skip the CDN entirely. Lock your firewall to the CDN's published IP ranges: it's the single most useful setting on this page.

  • Is Cloudflare's free plan enough for DDoS protection?

    For network attacks, yes: DDoS protection is unmetered on Free, just like on paid plans. The catch is application-layer control. Free gives you one rate limiting rule that blocks for 10 seconds, no uptime SLA and community support only. Put that rule on your login page. If the site pays your bills, Pro at $20 a month billed yearly doubles the rules and adds ticket support.

  • Does AWS Shield Standard protect my bill?

    No. Shield Standard is free and always on, and it keeps your site up during network-layer attacks. On pay-as-you-go pricing, though, every request from an application-layer attack is billed. CloudFront's flat-rate plans (Free, Pro $15, Business $200, Premium $1,000 a month) were built for this: no overage charges, even during an attack.

  • What's the difference between layer 3/4 and layer 7 DDoS protection?

    Layer 3/4 protection drops raw packet floods that saturate your connection, and most CDNs include it for free. Layer 7 attacks send real-looking HTTP requests, like thousands of hits on your search page. Stopping those takes a web application firewall (WAF) and rate limiting rules, which is where plans start to differ.

  • Do I need a WAF on top of my CDN?

    If your site has a login, a form or a checkout, yes. Cloudflare includes a WAF with a free managed ruleset on every plan. Azure Front Door only includes managed rules on Premium at $330 a month. CloudFront's flat-rate plans include 5 to 75 WAF rules depending on the tier.

  • What should I do during an active attack?

    Turn on your CDN's strictest mode (Cloudflare calls it "I'm Under Attack"), which puts a short challenge in front of every visitor. Turn it off once things calm down: it also breaks RSS feeds and API clients. Then check your logs for the targeted path and add a rate limit there. Most attacks are short: Cloudflare's H1 2026 report says 90.60% end in under 10 minutes.

  • How do I hide my origin IP behind a CDN?

    Get a new IP when you move behind the CDN, since the old one is already in DNS history and certificate logs. Remove subdomains that point straight to the server, like mail or ftp. Then allow only the CDN's IP ranges and close every other port. Researchers found the origin IP for more than 70% of the sites in one study.

Hack'celeration Lab

Get the next comparison in your inbox

One tool broken down each month, prices checked, limits included.

No spam. Unsubscribe in one click.