Websites and Tech

Firewall and WAF

Also called WAF, web application firewall

A filter that inspects incoming web requests and rejects the ones matching known attack patterns before they reach your site.

Quick facts: Firewall and WAF

Category
Websites and Tech
Also called
WAF, web application firewall
Level
Intermediate
Affects
Site security, server load, crawler access, uptime
Where to see it
Your host's security panel, a CDN or security service, WordPress security plugins
In this article4
  1. How a firewall and WAF work
  2. Why it matters
  3. Where firewalls and WAFs go wrong
  4. How to act on it

How a firewall and WAF work

A traditional network firewall decides which connections may reach a server at all, based on things like the port and the source address. A web application firewall, or WAF, works a level up: it reads the actual web request — the address, the parameters, the headers, the form data — and decides whether it looks like an attempt to break the application rather than to use it.

The rules recognise familiar attack shapes: database commands smuggled into a search box, script tags posted through a comment form, requests probing for configuration files that should not be public, and floods of hits from a single source. A WAF can sit in front of your site as a service that traffic passes through before reaching your host, or run on the server itself, and on many sites it arrives as part of a security plugin.

Why it matters

Most attacks on a small business website are not personal. They are automated scans working through lists of addresses, testing for known weaknesses in popular software. WordPress sites in particular are probed constantly because so many exist and so many run out-of-date plugins. A filter that rejects the obvious attempts before they reach your code removes a large volume of that noise.

It also buys time. Between a vulnerability becoming public and your site being updated there is a gap, and a WAF rule can often block the exploit during that window. Blocking junk traffic before it reaches PHP and the database saves server resources too, which on shared hosting is the difference between a site that stays responsive and one that intermittently stalls.

Where firewalls and WAFs go wrong

The biggest misunderstanding is treating one as a substitute for maintenance. A firewall filters requests; it does not patch software. A site running abandoned plugins behind an expensive WAF is still a site running abandoned plugins, and once an attacker finds a path the filter did not recognise, nothing else is standing in the way.

The second problem is over-blocking. Aggressive rules can reject legitimate visitors, editors saving posts that contain code samples, payment callbacks from a gateway, and search engine crawlers — and a blocked crawler is a serious, silent problem, because pages simply stop being fetched. Blocking whole countries is a blunt version of the same error, and it regularly locks out staff who travel or use a VPN. The third issue is that a plugin-based firewall runs after your site’s code has already started, so it protects the application but does little for the load caused by the traffic itself.

How to act on it

Start with the things a firewall cannot do for you: keep the platform, theme and plugins current, remove what you do not use, enforce strong passwords with two-factor authentication on admin accounts, and keep working backups you have actually restored once.

Then add filtering, and run it in a monitoring mode first so you can see what it would have blocked before it starts blocking. Whitelist your own office and your payment provider’s callbacks, and check after any change that Search Console can still fetch your pages and that crawl statistics have not dropped. Review the block log occasionally rather than never — it is the fastest way to notice both a real attack and a rule quietly rejecting customers. On a site where this is a recurring worry, it belongs in a standing website maintenance routine rather than in an afternoon of one-off configuration.

Do and do not

Do

  • Run new rules in monitoring mode before enforcing them
  • Keep software updated — filtering does not patch anything
  • Check crawl statistics after any firewall change

Do not

  • Block entire countries without knowing who you lose
  • Treat a firewall as a substitute for backups
  • Leave the block log unread for months

Questions people ask about this

Do I still need to update plugins if I have a firewall?

Yes. A firewall inspects requests and blocks the patterns it recognises; it does not repair the weakness inside your software. Attackers regularly find routes that existing rules do not match, and once inside, the filter is irrelevant. Updates close the hole itself. Treat filtering as an extra layer over maintenance, never as a replacement for it.

Can a firewall block Google from crawling my site?

It can, and this happens more often than people expect. Aggressive rate limits, country blocks or bot rules may reject legitimate crawlers, and the symptom is quiet: pages stop being fetched and gradually fall out of results. After any rule change, use Search Console to fetch a page and watch the crawl statistics for an unexplained drop.

Is a plugin firewall as good as one in front of my host?

They protect different things. A plugin runs after your site's code has started, so it can inspect requests but cannot spare the server the work of receiving them. A service that filters before traffic reaches your host absorbs floods and junk requests as well. Small sites often start with a plugin and add an upstream layer as traffic grows.

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.