Short answer: A web application firewall inspects requests to your website and blocks malicious ones, such as SQL injection, cross-site scripting and automated attacks, before they reach your site. WAFs run on the server, as a plugin or in a cloud service in front of your site.
What a WAF blocks
- SQL injection attempts. See SQL injection.
- Cross-site scripting. See XSS.
- Brute-force login attempts. See brute-force attacks.
- Known exploits for popular plugins.
- Bad bots and scrapers. See bad bots.
Types of WAF
| Type | Where it runs | Notes |
|---|---|---|
| Server WAF | On the hosting server | Often included by hosts |
| Plugin WAF | Inside WordPress | Easy to set up, uses your server's resources |
| Cloud WAF | In front of your site | Also filters traffic before it arrives |
Does a small site need one?
A WAF is a valuable extra layer, but it doesn't replace updates, strong passwords and backups. If your host already filters attacks at server level, a plugin or cloud WAF adds more protection for login pages and plugins.
Frequently asked questions
Can a WAF block real visitors?
Occasionally. Review blocked requests if customers report problems.
Does a WAF stop DDoS attacks?
Some cloud WAFs include DDoS protection. See DDoS explained.



