ToolScore

API Security, Priced at Real Request Volume

The metric here is not a feature list — it is what it costs to protect a product that already has traffic. Every option below is priced at 50M requests/month, the volume where an API stops being a demo: a WAF that bills per request, a rate limiter whose price doubles under replication, a CAPTCHA that costs ~667× the request it guards. Cloudflare’s self-serve plans charge $0 per request for WAF and rate limiting; AWS meters everything and adds surcharges per rule, per WCU and per CAPTCHA; Imperva, Akamai and Fastly publish no price at all. Every number comes from official pricing and docs pages checked on 2026-11-13 — where a vendor doesn’t publish, the cell stays “—” or says “Custom quote”.

WAF & bot protection — the sticker price versus the 50M-request bill

Two billing religions. Cloudflare sells flat plans — rules and regex move you up the ladder, requests are unmetered. AWS WAF is a pure meter: per ACL, per rule, per million requests, with inspection surcharges stacking on top. The last column runs the meter at our reference volume so the religions can be compared on money.

Value pick Cloudflare Free $0 at 50M req/mo

At the reference volume the unmetered WAF, rate limiting and DDoS cost $0 — the same traffic meters to $39–$89/mo on AWS WAF.

Service Price /mo Custom rules Regex 50M req/mo costs Score
Cloudflare Free Free Managed Ruleset (high-impact) — full Managed Ruleset + OWASP Core are Pro+ $0 5 No $0 — no per-request billing 75/100
Cloudflare Pro Cloudflare Managed Ruleset + OWASP Core Ruleset included $20/mo billed annually $25/mo monthly 20 No — Business+ $20 flat — WAF and rate limiting are unmetered 77/100
Cloudflare Business Cloudflare Managed Ruleset + OWASP Core Ruleset included $200/mo billed annually $250/mo monthly 100 Yes $200 flat 76/100
AWS WAF Pure PAYG, no plan tiers $5/web ACL + $1/rule + $0.60/1M requests $1 per rule each — $5 + 4×$1 + 50×$0.60 = $39/mo (4 rules, AWS’s own example case) · +Bot Control $10 + 40M×$1 = $50 → ≈$89/mo 68/100
Fastly NG-WAF Security Core / Core Plus / Total — every tier “Contact sales” Custom quote 5 / 25 / 100 by tier — Custom quote 44/100
Imperva WAF Not one dollar figure on the official page — trial/demo only Custom quote — — Custom quote 42/100
Akamai App & API Protector akamai.com returned 403 to our probes — quote-only confirmed, numbers unknowable Custom quote — — Custom quote 41/100

“—” = not verified in our check (nothing found on official pages) — it does not mean “doesn’t exist”. Cloudflare’s pricing pages show no per-request charges for WAF/rate limiting on self-serve plans, and the docs confirm current rate limiting rules carry no metered usage fees. The AWS 50M column is arithmetic on the verified unit prices (4 rules = AWS’s own pricing-page example case); Fastly’s confirmed tier detail is the rule counts — Core 5 / Core Plus 25 / Total 100 custom rules, with Bot Management only in Total. Bot protection tiers moved to each provider’s review page (click the name) — Bot Fight Mode vs Super Bot Fight Mode vs Bot Management, AWS Bot Control’s free allowances, Imperva’s add-on quote. Scores are our editorial estimate (0–100) of value at 50M req/mo — price against protection and limits; pillars without a verified fact sit at the neutral 5, and the quote-only vendors carry transparency 1–1.5.

Rate limiting — free windows, $0.20/100K commands and the 10-second trap

The cheapest rate limiter is the one inside a WAF you already pay for — Cloudflare’s rules are $0 per request on every plan; the price is the window. The DIY route moves the meter to Redis (Upstash) or to nothing at all (nginx on your own box).

Service Pricing Free tier Windows & limits Score
Cloudflare rate limiting rules $0 per request unmetered on every plan 1 rule (IP-only counting, 10-second window) Free: 1 rule, 10s · Pro: 2 rules, 1 min · Business: 5 rules, 10 min · Enterprise: 100 rules 75/100
AWS WAF rate-based rules $0.60/1M requests a rate rule is a rule: +$1/mo — — 68/100
Upstash (Redis rate limiter) $0.20 per 100K commands PAYG storage $0.25/GB (first 1 GB free) 500K commands/mo + 250 MB Global replication: 1 primary + 1 read region doubles writes → $0.40/100K 66/100
nginx limit_req (self-hosted) $0 software you pay the VPS — Per-key leaky bucket: “limit the request processing rate per a defined key… excessive requests are terminated” 75/100

Cloudflare’s rate limiting counts by IP only on Free; every counting characteristic other than IP (headers, cookies, JWT claims) is a Business+ feature. Upstash prices are per command — a token-bucket check is 1–2 commands per request, so 50M requests ≈ $10–20/mo on PAYG after the free 500K. The traps & perks column moved to each service’s review page (click the name) — Upstash’s replication doubling and fixed $10/$20 tiers, the retired Cloudflare legacy product, what nginx limit_req cannot stop. Scores are our editorial estimate (0–100) of value for the rate-limiting job at reference volume.

DDoS — what “unmetered” actually covers, layer by layer

The best deal in this entire page: Cloudflare absorbs unmetered L3/L4/L7 attacks on every plan, Free included — you only pay when your traffic isn’t proxied HTTP/HTTPS. AWS splits the same promise into a free network layer (Shield Standard) and a $3,000/mo everything-else (Advanced).

Service Price Layers Fine print Score
Cloudflare unmetered DDoS $0 all plans, including Free L3 / L4 / L7 Proxied HTTP/HTTPS only — you are protected “up to the layer on which your service operates”; raw TCP/UDP needs Spectrum / Magic Transit (Enterprise) 75/100
AWS Shield Standard $0 enabled automatically for every AWS customer L3 / L4 only No L7 — HTTP-layer flood protection is AWS WAF’s job, billed separately; cost protection (attack-spike credits) is Advanced-only 64/100
AWS Shield Advanced $3,000/mo per payer account + 1-year commitment L3 / L4 / L7 Plus data transfer out (CloudFront/Global Accelerator $0.025/GB first 100TB, tiered to $0.01; Route 53 $0; ELB/Elastic IP render dynamically) AND a paid Business/Enterprise Support plan; WCU above 1,500 bill fully — official Example 9: 60B requests at 2,000 WCU = $12,000/mo in WCU charges alone 46/100

Shield Advanced also requires a 1-year subscription commitment per payer account and a paid Business or Enterprise Support plan — a dependent cost the $3,000 headline hides. What’s covered — the “unmetered and unlimited” promise, Shield Advanced’s bundled WAF allowance (1,500 WCUs, 50B requests/mo, then $0.15/1M) — moved to each service’s review page (click the name). Scores are our editorial estimate (0–100) of DDoS value per dollar at reference volume.

50M req → $39–$89/mothe AWS WAF meter at reference volume — vs $0–$200 flat at Cloudflare

The AWS floor at 50M requests/month: $5 (web ACL) + 4×$1 (rules — AWS’s own example case) + 50×$0.60 = $39/mo. Add Bot Control ($10 base + $1/1M with the first 10M free → $50) and you land at ≈$89/mo. Cloudflare at the same volume: Free = $0, Business with regex = $200 flat — and neither bills a cent per request. The AWS meter only moves against you (rules, WCU, CAPTCHAs); Cloudflare’s only moves when you need regex or Enterprise.
When paid wins — and when $0 is enough
$0 is enough for most public APIs: proxied through Cloudflare Free you get unmetered DDoS on all three layers, the Free Managed Ruleset, 5 custom rules, 1 rate rule and Turnstile. Pay when you hit a hard Free wall: regex or 100 rules ($200/mo Business, self-serve), raw TCP/UDP DDoS (Spectrum / Magic Transit — Enterprise, quote), bot analytics beyond Block/Challenge (Bot Management — Enterprise add-on, no published price), or L7 DDoS cost protection — the attack-spike credits that repay your scaling bill exist only in Shield Advanced ($3,000/mo + commitment). The quote-only WAFs (Imperva, Akamai, Fastly Total) sell procurement, SLAs and account teams — not a price you can sanity-check.

Traps — the fine print that moves the bill

Nine verified gotchas from the official pages — stale article numbers, hidden free tiers, hidden dependent costs, and one 667× multiplier hiding inside a rule action.

The open-source path — nginx limit_req at $0

The documented behavior: nginx limits the request processing rate per a defined key with a leaky bucket, and excessive requests are terminated. Ten lines of config buys a per-IP rate limit with no meter, no plan and no vendor — the whole cost is the box it runs on.

# /etc/nginx/nginx.conf — per-IP leaky bucket, zero dependencies
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;

server {
    location /api/ {
        limit_req        zone=api burst=20 nodelay;
        limit_req_status 429;
    }
}

What it cannot stop (our analysis — consistent with the module’s per-key design, not an nginx-documented limit): volumetric L3/L4 floods (the pipe dies before a request reaches nginx), distributed low-and-slow from 50K IPs (every address stays politely under 10 r/s — no single bucket trips), and NAT collateral (one office IP means the whole office shares a single 10 r/s bucket and humans start eating 429s). One layer down, nftables adds connection and packet-rate limits at the firewall itself — same $0, same single-box view, nothing above L4.

Conclusion: Cloudflare Free beats nginx for a public API
A flood absorbed at the edge is a flood your server never sees. For anything exposed to the public internet, CF Free’s unmetered L3/L4/L7 absorption + Free Managed Ruleset + 5 custom rules + Turnstile dominates a self-hosted leaky bucket at the same price ($0). nginx limit_req still wins for internal APIs, zero-cloud setups, and as the last line of defense behind whatever edge you pick.

What is actually free — the Cloudflare Free ledger, with the corrections

The Free plan is a real security stack, not a trial. But two numbers circulate wrongly: Workers paid is $0.30/1M (not $0.15 — that is Durable Objects), and “Bot Management ~$2,000+/mo” is a third-party estimate for a product Cloudflare prices only by your account team.

Item What Free actually includes The catch
Unmetered DDoS (L3/L4/L7) Every Cloudflare plan including Free — “unmetered and unlimited” Proxied HTTP/HTTPS only; raw TCP/UDP = Spectrum / Magic Transit (Enterprise)
Free Managed Ruleset High-impact managed rules, automatic, on all plans Full Cloudflare Managed Ruleset + OWASP Core are Pro+
5 custom WAF rules Free plan No regex — regex support starts at Business ($200/mo annual)
1 rate limiting rule Free plan, $0 per request IP-only counting, 10-second window
Bot Fight Mode Free — plus Block AI bots and AI Labyrinth at $0 Super Bot Fight Mode is Pro/Business; Bot Management is an Enterprise add-on, no published price (“by your account team”)
Turnstile Free plan: 20 widgets per account Beyond that is Enterprise “Contact Sales”
Workers free tier 100K requests/day · static assets free and unlimited Paid Workers Standard is $0.30/1M requests with 10M/mo included — NOT the often-quoted $0.15/1M (that is Durable Objects); cache hits bill as requests

Also free and verified: Workers static assets are “free and unlimited”, and the Workers free tier allows 100K requests/day. There is no $5/mo bot tier between Free and Pro — the ladder is Bot Fight Mode (Free) → Super Bot Fight Mode (Pro/Business) → Bot Management (Enterprise add-on).

Deep dives

Data freshness & sources
Snapshot 2026-11-13, US pricing. Every number was checked against official pages on that date — (cloudflare.com/plans, CF custom rules, CF rate limiting, CF managed rules, CF bots plans, CF DDoS, Turnstile plans, Workers pricing, AWS WAF pricing, AWS Shield pricing, fastly.com/pricing, imperva.com, upstash.com/pricing, nginx limit_req docs). akamai.com returned 403 to both our curl and fetch probes — quote-only confirmed, numbers unverifiable. Cloudflare/AWS pricing pages move quietly (the AWS Challenge price is served dynamically and never renders statically) — cells without a verified source stay “—” / “Custom quote”.