AWS WAF vs Cloudflare
AWS WAF is the web application firewall built into Amazon Web Services. Cloudflare runs its WAF on the reverse proxy that sits in front of a website. This comparison sets them side by side on where each attaches, rules, managed rules, bot control, DDoS protection and pricing, and says which fits which situation.
AWS WAF attaches to AWS resources such as CloudFront, Application Load Balancers and API Gateway, and bills per web ACL, per rule and per million requests. Cloudflare protects any origin whose DNS records it proxies, and sells the WAF inside flat monthly plans. Both offer bot detection as a paid step up and DDoS protection at no extra charge.
Prices and other facts are as of October 29, 2026. Vendors change prices; confirm them on the vendor’s own pricing page. Independent analysis: neither project nor any vendor named here paid for or reviewed this page.
Who makes each
AWS WAF is a service of Amazon Web Services, part of Amazon.com, Inc. AWS segment sales for the third quarter of 2026 were $46.0 billion, up 39% year over year.
Cloudflare is a public company listed on the NYSE as NET. Revenue for the second quarter of 2026 was $696.1 million, up 36% year over year.
Six differences that decide it
Compared on vendor documentation and published prices as of October 2026.
Where the WAF attaches
AWS WAF
A web ACL attaches to CloudFront distributions, API Gateway REST APIs, Application Load Balancers, AppSync GraphQL APIs, Cognito user pools, App Runner services, Amplify, Verified Access instances and Bedrock AgentCore Gateway. A server outside AWS can be protected as a CloudFront custom origin.
Cloudflare
The WAF applies to traffic on proxied DNS records, where Cloudflare sits between visitors and the server. Free and Pro require Cloudflare as the primary DNS provider. Business and Enterprise can also proxy single subdomains through a CNAME setup.
AWS WAF protects AWS resources; Cloudflare protects whatever host its proxy points to.
Custom rules and rate limiting
AWS WAF
Each web ACL has a default budget of 1,500 web ACL capacity units, and each rule uses units by complexity. Rate-based rules count over 1, 2, 5 or 10 minutes, with a lowest limit of 10 requests.
Cloudflare
WAF custom rules per plan: 5 on Free, 20 on Pro, 100 on Business, 1,000 on Enterprise. Regular expressions start at Business. Rate limiting rules: 1 on Free, 2 on Pro, 5 on Business, up to 100 on Enterprise.
AWS caps rules by capacity and charges for each one; Cloudflare caps rules by plan.
Managed rules
AWS WAF
AWS Managed Rules include baseline groups (core rule set, admin protection, known bad inputs), groups for SQL databases, Linux, POSIX, Windows, PHP and WordPress, and IP reputation lists. AWS Marketplace sellers offer more groups at their own fees.
Cloudflare
The Free Managed Ruleset is on every plan. The Cloudflare Managed Ruleset and the Cloudflare OWASP Core Ruleset start at Pro. Sensitive Data Detection is Enterprise only.
AWS lets you pick narrow rule groups for your stack; Cloudflare unlocks its main ruleset by plan.
Bot control
AWS WAF
Bot Control is a managed rule group with two levels. Common detects self-identifying bots. Targeted adds browser interrogation, fingerprinting, behavior heuristics and optional machine learning, and answers with rate limits, CAPTCHA and silent challenges.
Cloudflare
Bot Fight Mode on Free challenges known bot patterns and cannot be skipped by WAF rules. Super Bot Fight Mode comes with Pro, Business and Enterprise. Bot Management for Enterprise is a paid add-on that scores every request from 1 to 99.
AWS sells bot control by the request; Cloudflare's per-request bot score needs an Enterprise add-on.
DDoS protection
AWS WAF
Shield Standard protects all AWS customers against common network and transport layer attacks, automatically, at no additional charge. Shield Advanced adds the Layer 7 Anti-DDoS managed rule group, DDoS cost protection, and the Shield Response Team for customers on Business or Enterprise Support.
Cloudflare
Unmetered DDoS protection for network and application layers is on every plan, including Free, and Cloudflare detects and mitigates attacks automatically. Magic Transit, for whole networks, is on the Contract plan at a custom price.
Application layer DDoS defense is a paid layer on AWS and part of every Cloudflare plan.
Pricing
AWS WAF
US list price as of October 2026: $5 per web ACL a month, $1 per rule or rule group a month, $0.60 per million requests. Bot Control is $10 a month plus $1 per million requests at Common (first 10 million free) or $10 per million at Targeted (first 1 million free). CAPTCHA is $0.40 per thousand attempts. Shield Advanced is $3,000 a month with a 1-year commitment.
Cloudflare
US list price as of October 2026: Free at $0. Pro at $20 a month billed annually or $25 monthly. Business at $200 a month billed annually or $250 monthly. The top plan, Contract, is custom and billed annually.
AWS WAF cost grows with rules and traffic; a Cloudflare plan price stays fixed as traffic grows.
The quick read
Choose AWS WAF when
- the application already runs behind CloudFront, an Application Load Balancer or API Gateway
- you want WAF charges on the AWS bill, priced by rule and request
- you want DDoS cost protection and a response team through Shield Advanced
Choose Cloudflare when
- the origins sit on several clouds or in your own data center
- you want a fixed monthly price for the WAF and DDoS protection
- a small site needs managed rules for $20 a month
Which fits your situation
An application on AWS behind an Application Load Balancer or API Gateway
AWS WAF. It attaches to those resources directly, with no DNS change.
Origins on more than one cloud or on premises
Cloudflare. Its proxy sits in front of any server. AWS WAF can cover them only through CloudFront custom origins.
A small public site with a fixed budget
Cloudflare Pro. It is $20 a month billed annually and includes the Cloudflare Managed Ruleset and unmetered DDoS protection.
A large AWS estate that wants DDoS cost protection
AWS Shield Advanced, at $3,000 a month with a 1-year commitment. It also covers standard AWS WAF fees for the resources it protects.
Which costs less?
It depends on traffic and rule count. One AWS web ACL with one managed rule group, five custom rules and 10 million requests a month lists at $17. The same ACL at 1 billion requests lists at $611. Cloudflare Pro is $20 a month billed annually at any traffic level. Bot Control, Shield Advanced and Cloudflare's Enterprise add-ons change both totals, so price each against your own request volume.
Common questions
Does Shield Advanced include AWS WAF?
For protected resources, yes. It covers the web ACL, rule and base request fees up to 1,500 capacity units, and up to 50 billion requests a month. Bot Control, CAPTCHA and larger capacity are still billed.
Can Cloudflare sit in front of an application on AWS?
Yes. Cloudflare proxies requests to the origin wherever it is hosted. On Free and Pro, Cloudflare must be the primary DNS provider for the domain.
Can AWS WAF protect a site hosted outside AWS?
Yes, through CloudFront. CloudFront accepts a custom origin hosted somewhere else, and the web ACL attaches to the distribution.
Sources
- AWS WAF pricing
- AWS Shield pricing
- AWS WAF developer guide: protected resource types
- AWS Managed Rules rule groups list
- AWS WAF Bot Control rule group
- AWS WAF Anti-DDoS rule group
- AWS WAF rate-based rule settings
- AWS Shield Standard overview
- AWS Shield Advanced overview
- CloudFront origins, including custom origins
- Amazon.com Announces Third Quarter Results (October 2026)
- Cloudflare Announces Second Quarter 2026 Financial Results
- Cloudflare Network and CDN plans
- Cloudflare WAF custom rules
- Cloudflare rate limiting rules
- Cloudflare WAF managed rules
- Cloudflare Bot Fight Mode
- Cloudflare Super Bot Fight Mode
- Cloudflare Bot Management for Enterprise
- Cloudflare DDoS protection
- Cloudflare proxy status
- Cloudflare DNS zone setups