A web application firewall (WAF) is a security layer that sits between visitors and your website, examines each request and blocks the ones that look malicious, such as attempts to inject code into a form, guess passwords or exploit a known flaw in a plugin. Ordinary visitors pass through without noticing it is there.
How a WAF works
A conventional network firewall decides which ports and addresses can talk to a server. A WAF works one level up, reading the content of web requests themselves: the URL, the form data, the headers. It compares each request against rules describing known attack patterns. A login form receiving fifty password attempts a minute from one address, a search box being sent a database command, or a request probing a file path that only exists in a vulnerable plugin can all be stopped before your site’s code ever runs.
WAFs come in two main forms. Cloud or DNS-level firewalls, such as Cloudflare and Sucuri, sit in front of your server: you point your domain at them, and traffic is filtered on their network before it arrives. These often come with a content delivery network, so the same service also speeds up delivery. Application-level firewalls, such as the Wordfence plugin for WordPress, run inside the site itself. They see more about what the request is doing in WordPress but only act once the request has reached your server.
Most providers update their rules centrally when a new vulnerability becomes public. That is valuable in the gap between a flaw being announced and you applying the security patch that fixes it.
Why it matters for a UK business
Small business sites are attacked by automated scripts all day long, not because anyone has chosen them but because bots scan the whole web for known weaknesses. A WAF cuts off most of that noise. It reduces the risk of a brute-force attack on your login page succeeding, lowers server load from junk traffic, and buys time when a plugin you rely on has an unpatched flaw.
There is a legal angle too. If your site collects enquiries or orders, it processes personal data, and UK GDPR expects appropriate security measures. A breach that exposes customer details may have to be reported to the ICO within 72 hours. A firewall is one of the reasonable measures that helps prevent that.
Common mistakes
- Blocking search engines. Strict bot rules or country blocking can serve a 403 Forbidden error to Googlebot. Pages then drop out of the index, and the cause is easy to miss because the site looks fine in your own browser.
- Blocking real customers. Over-tight rules can reject legitimate form submissions or payment callbacks. Check the log after every rule change.
- Leaving the origin exposed. With a cloud WAF, attackers who find your server’s real IP address can bypass the filter altogether unless the server only accepts traffic from the firewall.
- Relying on the firewall instead of updates. A WAF reduces risk; it does not repair vulnerable code.
How to act on it
Check whether you already have one. Many managed hosts include a WAF, and if your domain runs through Cloudflare a basic rule set may already be active. At the time of writing (October 2026), Cloudflare’s free plan includes a limited set of managed rules, with fuller rule sets on paid plans. Whichever you use, test the login, contact form and checkout after switching it on, and look at the Crawl stats report in Search Console over the following weeks for a rise in errors.
When a site’s pages vanish from Google for no obvious reason, an overzealous firewall is one of the first things I check during technical SEO work.
