- Home
- Comparisons
- Cloudflare vs AWS WAF: Edge Proxy vs AWS-Native Web Application Firewall
Cloudflare vs AWS WAF: Edge Proxy vs AWS-Native Web Application Firewall
An edge reverse proxy and an AWS-native web application firewall compared on reach, pricing units, DDoS scope, bot and API protection and operations, from official sources checked in November 2026.
Cloudflare is an edge network that sits in front of any website as a reverse proxy and bundles a WAF, unmetered DDoS protection, bot controls and API security with DNS, SSL and CDN caching in flat per-domain plans. AWS WAF is Amazon Web Services' managed firewall that attaches to AWS resources such as CloudFront, Application Load Balancers and API Gateway, and bills by web ACL, rule and request. The core difference is where the firewall lives and how it is charged: in front of your DNS on Cloudflare's network, or inside your AWS account next to the application.
- Cloudflare protects any origin that its DNS or CNAME records can proxy; AWS WAF protects only supported AWS resource types.
- Cloudflare prices plans per domain (Free, Pro $20, Business $200 per month billed annually); AWS WAF bills per web ACL, rule and request, with a new per-resource model from February 1, 2027.
- Cloudflare includes unmetered L3 to L7 DDoS protection on every plan; AWS includes Shield Standard and an Anti-DDoS rule group, with Shield Advanced sold separately.
- Bot scores on Cloudflare need Enterprise Bot Management; AWS Bot Control is a paid managed rule group available to any account, with free request allowances.
- AWS WAF is managed with the AWS API, CloudFormation and Firewall Manager across accounts; Cloudflare bundles DNS, SSL and CDN in the same dashboard.
At a glance
Values come from each vendor's official product, pricing and documentation pages, checked in November 2026. Where a vendor does not document something, the cell says so.
| Attribute | Cloudflare | AWS WAF |
|---|---|---|
| Vendor and HQ | Cloudflare, Inc., San Francisco; NYSE (NET) since September 2019 | Amazon Web Services (launched 2006), a subsidiary of Amazon.com, Inc. |
| Core focus | Edge network combining WAF, DDoS protection, bot controls and API security with DNS, SSL and CDN | Web application firewall for AWS resources, with managed rule groups for bots, fraud, APIs and AI endpoints |
| Deployment | Cloud (reverse proxy on Cloudflare's edge) | Cloud (managed AWS service attached to AWS resources) |
| Target company size | Small to enterprise, from the Free plan to custom contracts | Any AWS customer |
| Pricing model and published entry price (November 2026) | Freemium: Free $0; Pro $20 per month billed annually ($25 monthly); Business $200 per month billed annually ($250 monthly); Contract custom | Usage-based: $5 per web ACL and $1 per rule per month, $0.60 per million requests (through January 31, 2027) |
| Free trial | Not published (permanent Free plan instead) | Not published (Bot Control free request allowances only) |
| Delivery model | Cloud edge reverse proxy in front of any origin | Managed service on CloudFront, ALB, API Gateway, AppSync, Cognito, App Runner, Verified Access, Amplify and others |
| Bot management | Bot Fight Mode (Free), Super Bot Fight Mode (Pro, Business), Bot Management with bot scores (Enterprise) | Bot Control managed rule group: common and targeted levels, extra charges |
| DDoS coverage | Unmetered L3/4 and L7 on all plans, per the vendor; Magic Transit (contract); Spectrum for TCP and UDP | Shield Standard included; Anti-DDoS managed rule group for layer 7; Shield Advanced extra |
| Rule actions and testing | Custom, rate limiting and managed rules; count or log-only testing mode not documented in the pages reviewed | Allow, block, count, CAPTCHA and challenge; Count action documented for testing new rules |
| API security | API Shield (most features need Enterprise add-on); mTLS available to all | API Security managed rule group (JWT attacks, enumeration, object abuse), premium fee |
| Management and automation | Dashboard, API, CI/CD workflows | AWS console, AWS WAF API, CloudFormation, Firewall Manager across accounts |
| Bundled delivery services | Authoritative DNS with DNSSEC, Universal SSL, CDN caching on all plans | Not included; CloudFront and other AWS services are billed separately |
| Notable integrations | DNS, SSL and CDN on the same platform | Amazon CloudWatch metrics, AWS Marketplace rule groups, Shield and Firewall Manager |
| Main limitation | Bot scores, most API Shield features and Magic Transit need a contract; no self-hosted WAF | Protects only supported AWS resources; premium rule groups add per-request fees |
How we compared
This comparison is research-based. We reviewed Cloudflare's plans page, WAF, DDoS, bot and API Shield documentation, and AWS's AWS WAF product, features and pricing pages and developer guide, all checked in November 2026. We did not test either service and we give no scores, ratings or benchmarks. Network size and capacity figures are vendor claims.
The two products are not always substitutes. Cloudflare is a full edge layer; AWS WAF is one service in a larger AWS toolkit. We compare them where they overlap, which is filtering web and API traffic, and note where one depends on other products from the same vendor. For a comparison with a quote-based enterprise portfolio, see Cloudflare vs Imperva; for six other options, see Cloudflare alternatives. 404Pulse sells no software and has no paid placements.
Cloudflare overview
Cloudflare's application services sit in front of a website or API as a reverse proxy on an edge network that the vendor says serves data from 340 cities in more than 130 countries. Onboarding means pointing DNS or CNAME records at Cloudflare, after which filtering, caching and DNS run at the edge before traffic reaches the origin, wherever that origin is hosted.
- WAF: custom rules on all plans; the Free Managed Ruleset and one rate limiting rule on Free; full managed rules from Pro; an attack score field from Business.
- DDoS: standard, unmetered protection for L3/4 and L7 attacks on every plan, which the vendor says carries no bandwidth caps or surge pricing. An Advanced DDoS Protection add-on is available for Enterprise.
- Bots: Bot Fight Mode on Free, Super Bot Fight Mode on Pro and Business, and Bot Management on Enterprise with bot scores, JA3/JA4 fingerprints and verified bot controls.
- API Shield: API discovery, Schema Learning, schema validation and volumetric abuse detection, mostly on the Enterprise add-on; mTLS with a Cloudflare-managed CA for all.
Every plan also includes authoritative DNS with DNSSEC, Universal SSL and CDN caching.
AWS WAF overview
AWS WAF monitors HTTP and HTTPS requests forwarded to protected AWS resources. The developer guide lists Amazon CloudFront distributions, API Gateway REST APIs, Application Load Balancers, Elastic Load Balancing for Envoy, AppSync GraphQL APIs, Cognito user pools, App Runner services, Bedrock AgentCore Gateway, Verified Access instances and Amplify.
Rules are grouped in protection packs (web ACLs). They can match IP addresses, countries, headers, strings and regex patterns, request length, SQL injection and cross-site scripting, and can rate-limit clients over one or five minutes. Actions are allow, block (403 or a custom response), count, CAPTCHA and silent challenge. AWS Managed Rules cover core protections, IP reputation and known bad inputs, and AWS Marketplace sellers offer more rule groups. Paid managed rule groups add:
- Bot Control: a common level for known bots and a targeted level for evasive bots.
- Fraud Control: account takeover and account creation fraud prevention, with JavaScript, iOS and Android SDKs.
- API Security and AI Security: protections for JWT attacks, enumeration and object abuse, and protocol checks for LLM, MCP and agent-to-agent endpoints with an optional Amazon Bedrock Guardrails check.
AWS Shield Standard is included at no extra cost, and the Anti-DDoS managed rule group detects layer 7 events against a baseline. Shield Advanced adds expanded DDoS protection and the Shield Response Team for an extra charge. Firewall Manager applies WAF policies across accounts in an AWS Organization.
Feature comparison
"Documented" means the capability appears on the vendor's official pages reviewed in November 2026. "Not documented" means we did not find it there.
| Capability | Cloudflare | AWS WAF |
|---|---|---|
| Custom rules | Documented (all plans) | Documented |
| Managed rule sets | Documented (Free Managed Ruleset; full managed rules from Pro) | Documented (AWS Managed Rules and Marketplace rule groups) |
| Rate limiting | Documented (one rule on Free, more on paid plans) | Documented (per one or five minutes) |
| Count or log-only mode for testing rules | Not documented in the pages reviewed | Documented (Count action) |
| CAPTCHA and challenge actions | Challenges documented in bot features | Documented (CAPTCHA and silent challenge) |
| Advanced bot detection | Documented (bot scores in Enterprise Bot Management) | Documented (Bot Control targeted level for evasive bots) |
| Account takeover and sign-up fraud | Leaked credentials detection documented | Documented (Fraud Control ATP and ACFP) |
| API discovery and schema validation | Documented (API Shield; most features need the Enterprise add-on) | API Security rule group documented; discovery and schema validation not documented |
| AI and LLM endpoint protection | Documented (AI Security for Apps, paid add-on on Enterprise) | Documented (AI Security rule group) |
| L7 DDoS protection | Documented (unmetered, all plans) | Documented (Anti-DDoS rule group; Shield Standard included) |
| Network-layer DDoS for IP ranges | Documented (Magic Transit, contract) | Shield Advanced covers EC2, ELB, CloudFront, Route 53 and Global Accelerator (extra) |
| Protects origins outside the vendor cloud | Documented (any proxied origin) | Only through supported AWS resources such as CloudFront |
| Infrastructure as code | API and CI/CD workflows documented | Documented (API and CloudFormation) |
| Central policy across zones or accounts | Documented (account-level WAF rulesets across Enterprise zones, Enterprise only) | Documented (Firewall Manager) |
| Bundled DNS, SSL and CDN | Documented (all plans) | Not part of AWS WAF |
Three things separate the two in practice. The first is reach. Cloudflare can sit in front of any origin, including servers at another cloud provider or on-premises, as long as traffic is proxied through it. AWS WAF only filters traffic arriving at AWS resources, so it fits most naturally when the application already lives on AWS.
The second is how capabilities are tiered. Cloudflare ties features to plans: bots and API discovery step up with the plan, and the highest-tier features need a contract. AWS ties them to rule groups that any account can add, each with its own fee. A small team on AWS can add targeted bot detection without an enterprise contract; a small team on Cloudflare gets DNS, SSL, CDN and DDoS protection for a flat fee.
The third is operational fit. AWS WAF lives in the same console, IAM model, CloudFormation templates and CloudWatch metrics as the rest of an AWS estate, and Firewall Manager pushes policies across accounts. Cloudflare is a separate platform, but it replaces several services at once.
Pricing and licensing
Cloudflare sells per-domain plans, as checked in November 2026: Free at $0; Pro at $20 per month billed annually or $25 monthly; Business at $200 per month billed annually or $250 monthly; and Contract (Enterprise) at custom pricing, billed annually. API Shield and Magic Transit are contract-only. The plans page lists Cloudflare Rules allowances of 70, 225, 450 and 2,700 by plan, and Advanced Certificate Manager is a $10 per month add-on. Cloudflare says standard DDoS mitigation is unmetered, so attack traffic does not change the bill.
AWS WAF publishes usage prices with a model change scheduled, as checked in November 2026:
| AWS WAF charge | Through January 31, 2027 | From February 1, 2027 |
|---|---|---|
| Web ACL | $5 per month | Included |
| Rule or rule group | $1 per month | Included (non-premium AWS Managed Rules and Anti-DDoS rule group too) |
| Protected resource | Not charged | $0.01 per hour per resource |
| Requests | $0.60 per million | $0.60 per million |
| Premium requests (Bot Control targeted, Fraud Control, API Security, AI Security) | Rule-group specific fees | $5.00 per million, on top of the request fee |
| CAPTCHA | $0.40 per 1,000 attempts | Included |
Under the current model, Bot Control is $10 per web ACL per month plus request fees: the common level costs $1 per million requests after 10 million free, and the targeted level $10 per million after 1 million free. Fraud Control request pricing starts at $1,000 per million analyzed requests. Shield Advanced is billed separately.
The practical consequence: Cloudflare costs are fixed per domain and plan, and rise in steps when you need a higher tier. AWS WAF costs move with request volume, the number of resources (from February 2027) and which premium rule groups inspect traffic. Before comparing, estimate your monthly requests and the share that premium rule groups would inspect, and check how the February 2027 change affects your number of protected resources.
Deployment and integrations
Cloudflare onboarding means proxying each site through Cloudflare by changing DNS or CNAME records. Configuration is through the dashboard and API, with CI/CD workflows documented. For non-HTTP services, Spectrum covers TCP and UDP applications, and Magic Transit covers whole networks on contract. Because DNS, certificates and caching run on the same platform, many sites use Cloudflare for all three.
AWS WAF onboarding means associating a web ACL with a supported resource. It is managed through the AWS console, the AWS WAF API and CloudFormation, with real-time metrics in Amazon CloudWatch, sampled requests and a security dashboard. The pricing page says AWS WAF includes 500 MB of CloudWatch Logs and Vended Logs ingestion per million requests. Firewall Manager applies baseline policies across an AWS Organization, and AWS Marketplace sellers provide extra rule groups.
Advantages and limitations
Cloudflare
Advantages
- Protects any origin, on any host, once traffic is proxied.
- Free plan with unmetered DDoS protection, custom WAF rules, SSL and CDN.
- Flat, published per-domain prices for Pro and Business.
- DNS, certificates, caching and security in one dashboard and API.
Limitations
- Bot scores and JA3/JA4 fields require Enterprise Bot Management.
- Most API Shield features need an Enterprise plan plus the paid add-on.
- Magic Transit network protection is contract-only.
- No self-hosted WAF; every site must be proxied through Cloudflare.
AWS WAF
Advantages
- Native to AWS: attaches to CloudFront, ALB, API Gateway and other resources.
- Published usage prices with no upfront commitment.
- Bot, fraud, API and AI rule groups available without an enterprise contract.
- CloudFormation, CloudWatch and Firewall Manager for automation and multi-account control.
Limitations
- Only supported AWS resource types can be protected.
- Premium rule groups add per-request fees; Fraud Control starts at $1,000 per million analyzed requests in the current model.
- Shield Response Team and expanded DDoS protection need the separately priced Shield Advanced.
- The pricing model changes on February 1, 2027, so long-term estimates need recalculating.
Which fits which scenario
- Your applications run on AWS behind CloudFront, ALB or API Gateway. AWS WAF attaches directly and is managed with the rest of your AWS infrastructure.
- Your sites are spread across several hosts or clouds. Cloudflare can front any origin through DNS. AWS WAF would need each site routed through a supported AWS resource.
- You want a fixed monthly cost. Cloudflare plans are flat per domain, and DDoS mitigation is unmetered per the vendor. AWS WAF scales with requests, resources and premium inspections.
- You need advanced bot detection or login fraud protection without an enterprise contract. AWS Bot Control targeted and Fraud Control are available to any account with published fees. Cloudflare bot scores require Enterprise.
- You also want DNS, SSL and CDN from one provider. Cloudflare includes all three on every plan. On AWS they are separate services.
- You govern many AWS accounts. Firewall Manager applies AWS WAF policies across an AWS Organization.
- You protect LLM, MCP or agent endpoints. AWS documents an AI Security rule group available to any account. Cloudflare's WAF documentation lists AI Security for Apps as a paid add-on on Enterprise.
Verdict
Cloudflare and AWS WAF overlap on filtering web and API traffic, but they are built for different estates, and neither is the right choice for every team. Cloudflare fits teams that want one edge layer in front of sites hosted anywhere, with DNS, SSL, CDN and unmetered DDoS protection in flat per-domain plans. Its limits show when you need bot scores, most API Shield features or network protection, which require a contract.
AWS WAF fits teams whose applications already sit behind AWS resources and who want firewall rules managed in the same account, templates and monitoring as the rest of their infrastructure, with premium protections bought per rule group. Its limits are reach (AWS resources only) and a bill that follows traffic, with a pricing model change on February 1, 2027. Compare both with other services in the WAF and DDoS protection category before deciding.
Sources
- Cloudflare: plans
- Cloudflare: WAF
- Cloudflare: WAF documentation
- Cloudflare: DDoS protection documentation
- Cloudflare: Bot Management for Enterprise
- Cloudflare: API Shield documentation
- Cloudflare: DNS documentation
- Cloudflare: about the company
- AWS: AWS WAF product page
- AWS: AWS WAF features
- AWS: AWS WAF pricing
- AWS: What are AWS WAF, AWS Shield and AWS Firewall Manager (developer guide)
- AWS: Anti-DDoS managed rule group (developer guide)
- AWS: about AWS
Frequently asked questions
What is the price difference between Cloudflare and AWS WAF?
They charge in different units, so there is no single difference. Cloudflare charges a flat plan per domain: Free at $0, Pro at $20 per month and Business at $200 per month, billed annually, with a custom Contract tier. AWS WAF is usage-based: through January 31, 2027 it is $5 per web ACL and $1 per rule per month plus $0.60 per million requests, and from February 1, 2027 it becomes $0.01 per protected resource per hour plus $0.60 per million requests, with premium rule groups at $5.00 per million premium requests. These figures were checked in November 2026.
Can AWS WAF protect a site that is not hosted on AWS?
AWS WAF protects only supported AWS resource types, such as CloudFront distributions, Application Load Balancers and API Gateway REST APIs. An application hosted elsewhere would need to be fronted by one of those services, typically CloudFront. Cloudflare works as a reverse proxy in front of any origin once its DNS or CNAME records point to Cloudflare.
Which one includes DDoS protection?
Cloudflare documents unmetered L3 to L7 DDoS protection on every plan, with Magic Transit for whole networks on contract. AWS includes AWS Shield Standard at no extra cost with AWS WAF and offers an Anti-DDoS managed rule group for layer 7 attacks; AWS Shield Advanced, with the Shield Response Team, is a separate paid service.
Is there a free tier or trial?
Cloudflare has a permanent Free plan that includes unmetered DDoS protection, custom WAF rules, the Free Managed Ruleset and Bot Fight Mode; no trial of paid plans is advertised. The AWS WAF pricing page does not describe a general free tier, but Bot Control includes the first 10 million common-level and 1 million targeted-level requests per month free.
Can I use Cloudflare and AWS WAF together?
Neither vendor documents a joint setup on the pages we reviewed, but the two sit at different points: Cloudflare in front of DNS at the edge, AWS WAF on the AWS resource that receives the traffic. Running both means two rule sets to maintain and two bills, so decide which layer owns blocking decisions and use count or log modes on the other while you test.
Sources and disclosure
404Pulse sells no software and does not accept payment for comparisons or reviews. See our advertising disclosure, or report a correction.
Browse 13 research-based profiles of web application security, waf and ddos protection tools, then compare them side by side.