What a web application firewall does and when a small business needs one

What a web application firewall filters, what it cannot fix, and why a static site behind a network layer usually already has the part that matters.

3 minread 756words last updated

The short answer

A web application firewall sits between visitors and your site and inspects each request before it arrives, blocking those that match known attack patterns: injection attempts, malicious payloads, requests from known bad sources, scanners and floods. It reduces the noise that reaches your application, and when a vulnerability is announced in a component you use it can block the exploit pattern while you update, which is called virtual patching. What it cannot do is fix a flaw in how your application works. It does not see a logic mistake, an access control error or a business process that can be abused, and a determined attacker can often vary a payload to slip past pattern rules and reach a flaw that exists. For a static site with no server code there is little for a firewall to protect, and the managed rules included with the network layer in front of the site are enough. For an application with logins, data and administrative interfaces, a configured firewall is a worthwhile layer. In every case it is a layer, not a substitute for building the application securely.

What it does and does not do

A firewall doesA firewall does not
Block requests matching known injection and scripting patternsFix the flaw that would have made the injection work
Drop traffic from known bad sources and scannersStop an attacker using a clean source
Rate-limit and challenge floods and botsDistinguish a clever bot from a person every time
Virtually patch a known vulnerability while you updateReplace the update
Log attack attempts, which is useful informationSee logic flaws, access control errors or misuse of features
Enforce geographic or method rulesProtect against a stolen credential used normally

Deciding what you need

  1. Static site with forms: the network layer’s managed rules, plus validation, bot checks and rate limits on the functions. No dedicated firewall.
  2. Store on a hosted platform: the platform’s own protection; check what it includes.
  3. Application with logins and data: a configured firewall with managed rules, rate rules and bot controls, tuned to the application and watched.
  4. Application built from many third-party components: the above plus virtual patching as part of the update routine.
  5. Anything: the application built securely first; the firewall in front, never instead.

Getting value from one

Turn on the managed rule sets and tune them against genuine traffic so real users are never blocked. Add rate rules for the endpoints that matter. Turn on bot management where the platform offers it. Watch the logs for what is being attempted, because they show what attackers think is worth trying. And keep the update routine, because virtual patching is a bridge, not a destination.

What this means for you

A web application firewall filters known attack patterns before they reach your site and buys time against new vulnerabilities; it does not fix flaws in the application. A static site behind a network layer already has the part that matters. An application with logins and data benefits from a configured, watched firewall as one layer over secure code. Buy it for what it does, and never mistake a busy dashboard for a secure application.

Written by the CivSec S.M.A.R.T team

We build and run websites, software and AI systems for businesses. We write about what we see in that work, in plain language, and we update articles when things change.

Last checked . Spotted something outdated? Tell us.

Frequently asked questions

If we have a firewall, are we secure?

No. A firewall blocks requests that match known attack patterns, which stops much automated noise and buys time when a new vulnerability appears. It cannot see a logic flaw, cannot fix an access control mistake, and can often be bypassed by an attacker who varies the payload. Security comes from the application being built correctly; the firewall reduces what reaches it. Both together is the arrangement.

Our site is static. Do we need a firewall?

Not a dedicated one. There is no server code to inject into and no database to reach, so most of what a firewall filters has nothing to hit. The managed rules that come with the network layer in front of the site handle bad bots and floods, and the functions behind forms are protected by validation, bot checks and rate limits. Paying for an application firewall in front of static files protects against attacks the architecture already made impossible.

When is a configured firewall worth it?

For applications with logins, customer data, payments or administrative interfaces, where server code handles every request. There a firewall with managed rules, rate rules, geographic and bot controls, and virtual patching when a vulnerability is announced in a component you use, is a valuable layer. It is configured for the application, watched, and tuned so it does not block genuine users.

Sources

  1. Cloudflare Learning Center: What is a WAF? (accessed 2026-09-12)