Problem
Internet-facing apps face volumetric DDoS, credential stuffing, scrapers and known exploit payloads. Handling this in each service wastes capacity and leaves vulnerable code exposed until it is patched.
Also known as: web-application-firewall, edge-security, bot-mitigation
Filter hostile traffic at the network edge before it reaches origin services.
Internet-facing apps face volumetric DDoS, credential stuffing, scrapers and known exploit payloads. Handling this in each service wastes capacity and leaves vulnerable code exposed until it is patched.
An edge layer terminates TLS close to users, absorbs attacks across a large network, and applies request inspection and rate controls. It is the outermost layer in a defense in depth stack, not a substitute for secure code.
Treat WAF rules as code stored in version control, deployed through the same review process as application changes. Maintain a dashboard of blocked versus allowed requests per rule, and keep an emergency rule path ready so you can virtually patch a newly disclosed vulnerability within hours.
Client -> CDN/WAF edge
1. DDoS scrubbing, TLS termination
2. IP reputation, geo and ASN rules
3. Managed rules: SQLi, XSS, path traversal
4. Rate limit: 100 req/min per IP+path; 5 logins/min per account
5. Bot score: challenge if suspicious
-> origin (accepts only edge, via mTLS or secret header)
New rules run in count-only mode for a week, then promote to block once false-positive rates are known.
Medium — managed edge service
Medium — rule tuning
Medium
Origin reachable directly, bypassing the WAF entirely
Overbroad rule blocks legitimate traffic during launch
Rate limits keyed only on IP punish shared NAT users