Websites and Tech

Web Application Firewall (WAF)

Also called WAF, firewall, website firewall

A security filter that inspects traffic to a website and blocks requests that look like attacks before they reach the site's code.

Quick facts: Web Application Firewall (WAF)

Category
Websites and Tech
Also called
WAF, firewall, website firewall
Level
Intermediate
Affects
Site security, server load, crawl access for search engines, false blocks on real customers
Where to see it
Cloudflare, Sucuri, Wordfence, your host's security dashboard, firewall event logs, Search Console Crawl stats
In this article4
  1. How a WAF works
  2. Why it matters for a UK business
  3. Common mistakes
  4. How to act on it

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.

Do and do not

Do

  • Put a WAF in front of any site that takes logins, payments or form submissions
  • Review the firewall's blocked-request log after changing rules
  • Confirm Googlebot and Bingbot can still crawl after switching it on

Do not

  • Treat a firewall as a replacement for updating WordPress and plugins
  • Turn on aggressive bot blocking without checking search engine access
  • Leave the firewall in a learning or log-only mode indefinitely

Questions people ask about this

Do I need a WAF if my site is on WordPress?

It is worth having. WordPress itself is well maintained, but plugins and themes are where most vulnerabilities appear, and a firewall can block attacks against a known flaw before you have updated. A plugin firewall such as Wordfence and a cloud service such as Cloudflare are both reasonable starting points for a small business site.

Can a firewall hurt my SEO?

Yes, if it is configured badly. A firewall that challenges or blocks search engine crawlers stops them reading your pages, and over time those pages can drop out of search results. Reputable services recognise verified search engine bots, but custom rules, country blocks and aggressive bot settings can override that, so test after any change.

What is the difference between a WAF and antivirus or a malware scan?

A WAF tries to stop attacks on the way in. A malware scan looks at the files and database already on your site to find anything malicious that has got through. They work at different stages, so a sensible set-up uses both, alongside regular updates and backups.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.