Security glossaryA web application firewall (WAF) inspects HTTP traffic to a website and blocks requests that look like attacks, such as SQL injection or cross-site scripting.
A web application firewall (WAF) sits between visitors and a website and inspects each HTTP request. Requests that match attack patterns, such as SQL injection, cross-site scripting, or a flood of login attempts, are blocked before the site ever sees them.
Where it runs
- At the network edge: a CDN or proxy (Cloudflare, Sucuri, and others) filters traffic before it reaches your server.
- On the server: a module such as ModSecurity inspects requests in the web server.
- In the application: a WordPress security plugin checks requests once WordPress has loaded, which is easier to set up but uses your server's resources.
What it is not
A WAF is a layer of protection, not a fix. It cannot patch a vulnerable plugin, and rules can miss new attacks, so updates and backups still matter.
Source: OWASP: Web application firewall.