What is a Web Application Firewall (WAF)?
A WAF sits in front of your website and filters out attacks before they reach it.
A Web Application Firewall (WAF) is a filter that sits between your website and the internet. It inspects every request and blocks the ones that look like attacks.
What it blocks
- SQL injection and cross-site scripting attempts
- Bots trying thousands of passwords on your login page
- Known exploits for popular plugins and software
- Bad bots, scrapers and spam
- Some DDoS traffic, when combined with a CDN
Types of WAF
- Cloud WAF (Cloudflare, Sucuri): traffic passes through their network first. Easy to set up and also speeds up your site
- Plugin WAF (such as Wordfence for WordPress): runs on your own server
- Server WAF (ModSecurity): configured by your host
What it can’t do
A WAF is a strong extra layer, not a replacement for updates, good code and strong passwords. Think of it as a security guard at the door, not a lock on every room.
A WAF stops many attacks before they reach your site, but it works best alongside good security habits.