Website Security

Hosting WAF vs WordPress Security Plugin: Do You Need Both?

Where filtering sits in the request path decides what it can stop. What an edge WAF, a host platform and a WordPress plugin can and cannot see, layer by layer.

The short version

“Do we need a WAF as well?” is usually asked as a product question and is actually a position question. Filtering that sits in front of your origin and filtering that runs inside WordPress are not competing implementations of the same control — they occupy different points in the request path, and the position determines what each one can see.

  • Upstream of the origin, a filter can drop a request before it costs you anything, and can see patterns across every site behind it. It cannot see which WordPress user is logged in, which plugin will handle the request, or whether a file on disk changed.
  • Inside WordPress, a filter sees all of that. It cannot stop a request from arriving, and it only runs if the request reaches PHP.

So the useful question is not “which is better” but “which signals does my portfolio’s actual risk depend on, and is anything watching for them?” For a good number of agency sites the honest answer is that the hosting platform plus disciplined patching covers it, and a separate WAF would be a fourth overlapping tool nobody owns.

The request path

Everything below follows from this. A visitor’s request passes through a fixed sequence, and each control can only act on what has reached it.

  Visitor
     │
     ▼
   DNS  ─── the hostname resolves to one of two things
     │
     ├─ (A) the origin host directly ──────────────┐   no upstream filter
     │                                             │
     └─ (B) an edge proxy / cloud WAF              │   filters, then forwards
                    │                              │
                    ▼                              │
            Host platform controls  ◄──────────────┘
            (network limits, shared protections)
                    │
                    ▼
              Web server
            (rate limits, rules, TLS termination)
                    │
                    ▼
                   PHP
                    │
                    ▼
               WordPress core
   ── an endpoint plugin firewall runs here (or just before, via a PHP prepend) ──
                    │
                    ▼
            Theme, plugins, database

Two things fall straight out of the diagram.

Branch (A) is the common case. Many WordPress sites, especially on basic hosting, resolve directly to their host. There is no upstream filter to ask questions of, and the host’s own platform controls are the first thing a request meets.

An endpoint plugin runs late. It executes inside PHP: either once WordPress has loaded or, if the server allows it, from a file PHP loads before WordPress starts. Either way PHP has already started and the request has already consumed origin resources. That is the cost of seeing application context, and it is a real cost at volume.

What each position can and cannot observe

This is the matrix the decision actually turns on. “Yes” means the position is capable of observing or acting on the signal — not that any particular product does, which is a question for the product’s documentation.

Signal or action Edge proxy / cloud WAF Host platform Web server WordPress plugin
Drop a request before it reaches your origin Yes Partly No No
Absorb volume your origin could not serve Yes, if traffic routes through it Varies by host No No
See traffic sent straight to the origin IP No Yes Yes Yes
Inspect the request body after TLS termination Yes Varies Yes Yes
Know which WordPress user is authenticated No No No Yes
Know which plugin or theme will handle the request No No No Yes
Know which plugin versions are installed No Varies No Yes
Detect a changed file on disk No Varies No Yes
Correlate an attack across many sites at once Yes Within that host No Only via a vendor’s network
Act when the origin is already down Yes Varies No No
Save origin CPU on a blocked request Yes Partly Yes No
Keep working if the filter itself fails Depends — it is in the path n/a n/a Depends — a fatal error in the plugin can take the site down

The rows worth re-reading are rows three and five. An upstream filter sees nothing that bypasses it, and only the endpoint knows who is logged in. Those two facts explain most of the disappointment people have with whichever layer they bought.

The two bypasses that decide whether an upstream filter is real

An edge WAF protects the paths that route through it. It is therefore only as good as your ability to answer these:

  1. Is the origin reachable by IP? If the server answers requests sent directly to its address, anyone who learns that address can skip the filter entirely. Origin addresses leak through historical DNS records, mail headers, certificate transparency logs and misconfigured subdomains. The mitigation is to restrict the origin to accept traffic only from the proxy, which is a host-level configuration you must actually make — not something that happens by pointing DNS.
  2. Does every hostname route through it? A staging subdomain, a legacy www record, a mail host sharing the server, or a cPanel address on the same machine can all be unfiltered doors into filtered infrastructure.

If you cannot answer both, an upstream WAF is providing caching and a dashboard rather than a boundary. That is not nothing, but it is not what it was bought for.

What “hosting already includes security” usually means

Hosts bundle genuinely useful things under one word, and the bundle differs by plan. Before concluding you are covered, find out which of these you have, from the host’s own documentation, and write down the date you read it:

  • Network-level capacity handling, which is about keeping the platform up under volume — a platform-wide concern that may or may not be tuned to your site.
  • A shared rule set applied to all tenants, usually conservative, because a false positive affects everyone on the platform.
  • Login rate limiting, which is one of the most commonly bundled controls and genuinely useful against credential stuffing.
  • Malware scanning, with widely varying scope: files only, files and database, on upload, or on a schedule.
  • Isolation between tenants, which is not filtering at all but matters more than filtering if you host several clients together.

Two things are almost never included, and both are yours: knowing which plugin versions you run, and patching them. Those remain the largest source of real risk on a WordPress portfolio, and no filtering layer at any position substitutes for them. The baseline that covers this is the security checklist for agencies.

Where the layers genuinely overlap

Overlap is not automatically waste — a second layer that catches what the first missed is the point of defence in depth. It becomes waste when nobody can say which layer is responsible for what, because then nothing is tuned, alerts are duplicated, and a gap looks the same as coverage.

Function Commonly covered by Worth duplicating?
Login rate limiting Host, edge, plugin — frequently all three Rarely. Pick one, confirm it works, turn the others down
Known-exploit request filtering Edge, plugin Sometimes, if the rule sets differ meaningfully
Malware and file-change detection Host, plugin Usually one is enough; the plugin sees more
Vulnerability inventory Plugin only, in practice Not duplicable — make sure you have it
Volume absorption Edge, host Not duplicable in a useful way
Blocking by country or network Edge, plugin Rarely worth the maintenance either way

A useful exercise: for each row, name the single layer that owns it, write it down, and turn the function off elsewhere unless you can articulate what the second instance adds.

When you do not need a separate WAF

Stated plainly, because the commercial incentive on the internet runs the other way:

  • The site is low-value and well maintained. Brochureware on a maintained managed plan, a single-figure plugin count, MFA on the administrator accounts, patching inside a defined SLA. Another filtering layer here mostly adds a dashboard.
  • You cannot answer the bypass questions. An edge WAF in front of an origin that still answers on its IP is solving a problem you do not yet have while leaving the one you do.
  • Nobody is contracted to respond. A layer that generates alerts nobody owns converts into noise within a month. Agree who responds, and who pays for the hours, before adding detection.
  • It would be your fourth overlapping tool. See the table above.
  • The money would fix something more load-bearing. An off-platform backup destination, MFA coverage across the portfolio, or the time to remove abandoned plugins each reduce more risk per pound than a fourth filter.

When a separate upstream layer earns its place

  • The origin cannot absorb the volume you occasionally see, and you can route all traffic through the proxy and lock the origin to it.
  • You need protection that works when the origin is unreachable — a holding page, or filtering that continues during an incident.
  • You want one place to apply a rule across many client sites at once. Portfolio-wide response is a real operational advantage and is hard to replicate per site.
  • A client contractually requires it, which is a legitimate reason and should be priced.
  • The site has a history. A site that has been compromised before, or one carrying payment or personal data, justifies more layers than a brochure site.

What stacking actually costs

Rarely discussed, so worth listing:

  • Caching interactions. An edge proxy that caches, in front of a host that caches, in front of a page cache plugin, produces cache-invalidation bugs that present as “the client says the change did not go live”.
  • False positives, and who fields them. Someone has to triage the blocked form submission. On a portfolio that is a recurring workload.
  • An added availability dependency. A filter in the request path is a thing that can fail, and when it does the site is down regardless of the origin’s health.
  • Another rule set to maintain, per site, across the portfolio.
  • Logs in four places, none of which correlate, which makes incident reconstruction harder rather than easier.
  • Per-site cost at portfolio scale. A modest monthly fee times thirty sites is a real line item, and it recurs.

A decision sequence

Work down. Stop when the answer is no.

  1. Is patching under control, with a plugin inventory and an SLA? If not, fix that first. It is the dominant risk and no layer compensates for it.
  2. Is MFA on every account that can deploy code or change DNS? If not, that is cheaper and buys more.
  3. Is there an off-platform backup that someone has restored? If not, buy recoverability before prevention.
  4. What does the host already provide? Read it, date it, and name the gap in one sentence.
  5. Is the gap a signal only the endpoint can see — authenticated user, plugin context, file changes? Then an endpoint control is the answer.
  6. Is the gap volume, origin exposure or portfolio-wide response? Then an upstream layer is the answer — and only if you can lock the origin to it.
  7. Can you name who responds to its alerts, and who pays for that time? If not, you are buying an obligation, not a control.

What to ask, and of whom

Of the host, from documentation, with the date recorded: what filtering is applied and at which layer; whether rules are shared across tenants or tunable per site; what the login rate limiting actually does; what malware scanning covers; how long logs are retained and whether you can export them during an incident; what isolation exists between sites on shared infrastructure.

Of an upstream WAF vendor: whether the origin can be locked to the proxy and how; what happens to the site if their service is unavailable; how rules are tuned and by whom; whether logs are exportable; how a false positive is diagnosed; and what the per-site cost is at your portfolio size, at renewal rather than at introduction.

Of yourself: who will own this in six months.

Where the vendors sit

For orientation only. Wordfence is an example of the endpoint category — a plugin running inside WordPress with application context. Sucuri offers products in the upstream category, where filtering sits in front of the origin. Hosting platforms occupy the middle rows of the matrix, and what any individual plan includes varies.

Those are categories, not recommendations. Nothing was tested for this page, no product is claimed to stop any particular attack, and no layer described here makes a site immune to denial of service or to malware. A documentary comparison of the two vendors, built from their own documentation and not tested, is in Wordfence vs Sucuri for agencies. A hands-on comparison has not been done.

How this page will change

The matrix above describes what each position in the request path is capable of observing, which is a structural claim rather than a measured one. It deliberately does not say what any product does, because that requires reading each product’s documentation and ideally running it. Two things would improve this page: a dated record of what named hosting plans document themselves as filtering, and a controlled demonstration — on sites we own — of a request that one layer sees and another cannot. Both are planned; neither is claimed here. The methodology page sets out what each evidence label commits to.

Sources

Vendor documentation changes without notice, so each source is listed with the date it was read.

  1. OWASP — OWASP Top 10 (retrieved )
  2. WordPress — Hardening WordPress (retrieved )
  3. WordPress — Brute Force Attacks (retrieved )