Software · head to head
AWS WAF vs Cloudflare Workers

AWS WAF
Software
Managed web application firewall for CloudFront, load balancers and APIs on AWS
- From
- $5/month
- Free plan
- No

Cloudflare Workers
Software
Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan
- From
- Free
- Free plan
- Yes
The short version
- Cloudflare Workers has a free plan, then $5/mo; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only Cloudflare Workers lists edge execution.
- Where AWS WAF falls short: it only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it.
- Where Cloudflare Workers falls short: free has a 10 ms CPU cap.
How do AWS WAF and Cloudflare Workers differ?
AWS WAF and Cloudflare Workers differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and Cloudflare Workers actually diverge.
| Attribute | AWS WAF | Cloudflare Workers |
|---|---|---|
| Starting price | $5/month | Free |
| Pricing model | Per web ACL, per rule and per million requests | Free plan plus usage-based paid plan |
| Free tier | No | Yes |
| Platforms | Web | Web, Linux, macOS, Windows |
Which features does each one have?
They share no listed features; 6 appear only for AWS WAF and 6 only for Cloudflare Workers. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS WAF
- Web ACLs and rules
- Managed rule groups
- Bot Control
- Fraud Control
- Rate-based rules
- Logging
Only in Cloudflare Workers
- Edge execution
- Workers KV
- Durable Objects
- Hyperdrive
- Queues
- Spend limits
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Cloudflare Workers for A low-latency API or middleware. The jobs each tool is most often brought in to do.
AWS WAF
- Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Cloudflare Workers
- Rate limiting login and API endpoints that sit behind CloudFrontnot Cloudflare Workers
- Adding bot detection to a retail site already hosted on AWSnot Cloudflare Workers
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Cloudflare Workers
Cloudflare Workers
- A low-latency API or middlewarenot AWS WAF
- A full-stack app with static assetsnot AWS WAF
- A cron-driven data jobnot AWS WAF
- Rewriting or protecting traffic at the edgenot AWS WAF
Where do AWS WAF and Cloudflare Workers fall short?
Cloudflare Workers's most cited limit: free has a 10 ms CPU cap. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS WAF
- It only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it
- Charges come from several meters at once (web ACL, rules, rule groups, requests, logging, and per-feature fees), so predicting a bill needs a worksheet rather than a single price
- Account Takeover Prevention and Fraud Control start at $1,000 per million requests, so protecting a busy login endpoint can cost more than the web ACL itself
- Managed rules ship in count-first workflows and generate false positives on unusual payloads, so someone has to review logs and tune exclusions
- Request body inspection is capped by default, and inspecting beyond the limit or using more than the default capacity units carries extra per-request charges
Cloudflare Workers
- Free has a 10 ms CPU cap
- The runtime is not full Node.js, so some libraries do not run
- Costs scale with CPU time, so heavy compute surprises
- Durable Objects and other products are billed separately
- Logs and Logpush follow separate observability pricing from December 2026
How much do AWS WAF and Cloudflare Workers cost?
AWS WAF starts at $5/mo; Cloudflare Workers has a free plan, with paid plans from $5/mo. Plan by plan below, from each vendor's own pricing page.
AWS WAF
$5/month- Pay-as-you-go$5/mo
- $5.00 per web ACL per month
- $1.00 per rule and $1.00 per rule group per month
- $0.60 per million requests
- Bot Control$10/mo
- $10.00 per web ACL per month subscription
- Common: $1.00 per million requests, first 10 million free
- Targeted: $10.00 per million requests, first million free
- Account Takeover and Fraud Control$10/mo
- $10.00 per web ACL per month per rule group
- $1,000 per million requests for the first 2 million, falling to $50 per million at the highest tier
Cloudflare Workers
Free- Workers FreeFree
- 100,000 requests per day
- 10 ms CPU per invocation
- Workers Paid$5/mo
- 10 million requests included, then $0.30 per million
- 30 million CPU ms included, then $0.02 per million
Which should you pick?
Choose Cloudflare Workers if
- You need edge execution.
- You want to start without paying.
- You work on Web, Linux, macOS, Windows.
- You also want workers kv.
Questions people ask
- Is AWS WAF or Cloudflare Workers better?
- It depends on the job. AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer; Cloudflare Workers fits a low-latency API or middleware. AWS WAF starts at $5/month and Cloudflare Workers at Free.
- Which is cheaper, AWS WAF or Cloudflare Workers?
- Cloudflare Workers has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Cloudflare Workers.
- Does AWS WAF or Cloudflare Workers run on more platforms?
- AWS WAF runs on Web. Cloudflare Workers runs on Web, Linux, macOS, Windows.
- Can I use Cloudflare Workers for free?
- Yes. Cloudflare Workers has a free tier, so you can try it without paying. AWS WAF starts at $5/month.
- What is AWS WAF best used for?
- AWS WAF is most often used for blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer, rate limiting login and api endpoints that sit behind cloudfront, adding bot detection to a retail site already hosted on aws, applying one set of waf rules across many accounts through aws firewall manager. Of those, blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer and rate limiting login and api endpoints that sit behind cloudfront are not what Cloudflare Workers is typically brought in for.
- What can AWS WAF do that Cloudflare Workers cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive.
Answered from the vendors’ own pages
AWS WAF: How much does AWS WAF cost per month?
On pay-as-you-go pricing it is $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests, per the AWS pricing page. Bot Control, fraud rules, CAPTCHA and logging are billed on top.
Cloudflare Workers: Is Cloudflare Workers free?
Yes, with 100,000 requests a day.
AWS WAF: Does AWS WAF work outside AWS?
No. It protects supported AWS resources such as CloudFront, Application Load Balancer and API Gateway. Origins elsewhere can be covered if they sit behind CloudFront.
Cloudflare Workers: What does Paid cost?
A $5 monthly minimum plus usage.
AWS WAF: Is AWS WAF included with Shield Advanced?
Shield Advanced includes WAF usage for protected resources, up to 50 billion requests per month and 1,500 capacity units per web ACL, per the Shield pricing page.
Cloudflare Workers: Are static assets charged?
No, they are free and unlimited.
Related pages
More on Cloudflare Workers
Keep looking
Other head to heads
- AWS WAF vs Imperva
- AWS WAF vs FortiWeb
- AWS WAF vs Sucuri
- AWS WAF vs Wordfence
- AWS WAF vs Sophos Firewall
- AWS WAF vs Clerk
- AWS WAF vs Transcend
- AWS WAF vs Hanwha Vision
- AWS WAF vs Apiiro
- AWS WAF vs Baffle
- AWS WAF vs Cisco Secure Firewall
- AWS WAF vs CrowdStrike Falcon
- AWS WAF vs Bitwarden
- AWS WAF vs Okta
- AWS WAF vs SentinelOne Singularity
- AWS WAF vs ProtonVPN
- AWS WAF vs FortiMail
- AWS WAF vs Sophos Intercept X
- AWS WAF vs PartyKit
- AWS WAF vs Biome
- AWS WAF vs WebStorm
- AWS WAF vs Particle
- AWS WAF vs AWS Serverless Application Model (AWS SAM)
- AWS WAF vs Postman
- AWS WAF vs Swagger UI
- AWS WAF vs Proxyman
- AWS WAF vs AppSignal
- AWS WAF vs Nhost
- AWS WAF vs Deno
- AWS WAF vs Atlantis
- AWS WAF vs Cody
- AWS WAF vs GitLab
- AWS WAF vs GitHub
- AWS WAF vs SonarQube
- AWS WAF vs Sublime Text
- AWS WAF vs Buildkite
- Cloudflare Workers vs Imperva
- Cloudflare Workers vs FortiWeb
- Cloudflare Workers vs Sucuri
- Cloudflare Workers vs Wordfence
- Cloudflare Workers vs Sophos Firewall
- Cloudflare Workers vs Clerk
- Cloudflare Workers vs Transcend
- Cloudflare Workers vs Hanwha Vision
- Cloudflare Workers vs Apiiro
- Cloudflare Workers vs Baffle
- Cloudflare Workers vs Cisco Secure Firewall
- Cloudflare Workers vs CrowdStrike Falcon
- Cloudflare Workers vs Bitwarden
- Cloudflare Workers vs Okta
- Cloudflare Workers vs SentinelOne Singularity
- Cloudflare Workers vs ProtonVPN
- Cloudflare Workers vs FortiMail
- Cloudflare Workers vs Sophos Intercept X
- Cloudflare Workers vs PartyKit
- Cloudflare Workers vs Biome
- Cloudflare Workers vs WebStorm
- Cloudflare Workers vs Particle
- Cloudflare Workers vs AWS Serverless Application Model (AWS SAM)
- Cloudflare Workers vs Postman
- Cloudflare Workers vs Swagger UI
- Cloudflare Workers vs Proxyman
- Cloudflare Workers vs AppSignal
- Cloudflare Workers vs Nhost
- Cloudflare Workers vs Deno
- Cloudflare Workers vs Atlantis
- Cloudflare Workers vs Cody
- Cloudflare Workers vs GitLab
- Cloudflare Workers vs GitHub
- Cloudflare Workers vs SonarQube
- Cloudflare Workers vs Sublime Text
- Cloudflare Workers vs Buildkite
