A web application firewall, or WAF, filters HTTP and HTTPS traffic to protect websites and APIs from common application-layer attacks. Unlike a network firewall that mainly checks ports and IPs, a WAF understands request content, so it can inspect form fields, cookies, URLs, and headers for dangerous patterns such as SQL injection, cross-site scripting, brute-force login attempts, and malicious file uploads.
In practice, a WAF helps reduce exposure when a vulnerable plugin, theme, or custom endpoint is reachable from the internet. It can block obvious exploit traffic, rate-limit suspicious requests, and alert defenders to probing against login or password-reset flows. However, it is not a replacement for secure code or patching: a well-crafted attack may still succeed if the application trusts attacker-controlled input. Used with updates, least privilege, and multi-factor authentication, a WAF is a useful layer that can slow attacks and shrink their impact.


