A web application firewall (WAF) is a protective layer that inspects HTTP and HTTPS traffic to web applications and APIs before it reaches the application. Unlike a classic network firewall it works at the application layer: it understands requests semantically and detects attack patterns such as SQL injection, cross-site scripting or path traversal.
Modern WAFs run as a cloud service at the network edge rather than as an appliance in the data center. That way they protect applications regardless of where they run and receive current rules centrally.
How does a WAF work?
Every incoming request passes through a ruleset. Managed rules cover known attack classes and fresh vulnerabilities and are updated continuously by the provider; custom rules capture application-specific logic, such as protecting individual endpoints or exceptions for partner systems. Suspicious requests are blocked, challenged or flagged and logged.
Virtual patching is especially valuable: when a new vulnerability (CVE) becomes known, a WAF rule shields the attack path at the network edge before the affected systems themselves are updated. Today, sometimes only minutes pass between the publication of an exploit and the first attack attempts — no maintenance window is that fast.
What a WAF delivers in practice
- Protection against the OWASP Top 10 risks such as injection, XSS and broken authentication.
- Virtual patching of new CVEs before your own systems are updated.
- Rule tuning against false positives so real customers are never blocked.
- Visibility: every mitigation is logged and analysable — including for compliance evidence.