Web Application Firewall
Subject: Computer and Technology noun /wɛb ˌæp.lɪˈkeɪ.ʃən ˈfaɪərˌwɔːl/ 1 definition
- web-security
- application-security
- network-security
-
Definition (noun)
Entry #191 · UpdatedA Web Application Firewall (WAF) is an application-layer security system that monitors, inspects, and filters HTTP and HTTPS traffic between clients and web applications. Deployed in front of or integrated into web servers, it evaluates request headers, URLs, cookies, and message bodies against security policies to detect and block exploits such as SQL injection, cross-site scripting (XSS), and automated abuse. Unlike traditional network firewalls that filter traffic by IP address, port, and transport protocol at Layers 3 and 4, a WAF operates at Layer 7 to safeguard web endpoints, functioning as a perimeter defense rather than a replacement for secure application design.
Common Types
Cloud-Based WAF: Hosted as a managed service, typically at a CDN edge via DNS routing, that filters malicious requests before traffic reaches origin servers.
Network-Based WAF: Deployed on-premises as a hardware or virtual appliance inline with local infrastructure for low-latency inspection and direct policy control.
Host-Based WAF: Integrated directly into web server software or application middleware, providing deep local context while sharing host CPU and memory.
Example
An e-commerce platform routes its checkout API traffic through a cloud-based WAF configured with the OWASP Core Rule Set. When an attacker submits
' OR 1=1--in a login field to probe for SQL injection, the WAF matches the signature, returns an HTTP403 Forbiddenresponse, and logs the event before the request reaches the backend server.