Can a WordPress Firewall Really help save the planet?

We made a fairly bold claim about our Deny All Firewall WordPress plugin:

On a heavily scanned WordPress site blocking around 50,000–100,000 unwanted requests per day, we estimate that Deny All Firewall could avoid approximately 100 kg of CO2 emissions per year … roughly comparable to the direct emissions attributable to one passenger on a one-way flight from London to Ibiza.

That sentence quite reasonably raises two questions: how on earth can a firewall reduce carbon emissions, and did somebody decide on Ibiza first and then invent the mathematics afterwards?

The short answers are “by stopping the server doing pointless work” and “no”.

Here is the longer answer … with the maths available for anyone who wants it.

The internet is remarkably noisy

A public website does not receive requests only from prospective customers, loyal readers and your mum checking whether you have fixed that typo.

It also receives a constant stream of requests from vulnerability scanners, password crackers, content scrapers and bots looking for files that should never be public in the first place.

They request old WordPress exploits, environment files, database backups, private keys and thousands of entirely imaginary pages.

Without early protection, WordPress may end up loading PHP, connecting to its database and running plugins just to discover that /please-let-there-be-a-forgotten-database-backup.sql does not exist.

Deny All Firewall does the opposite. It lets the web server refuse many unwanted requests before WordPress has to do anything at all.

The cheapest WordPress request is the one WordPress never has to process.

So what does a WordPress request actually cost?

There is no single answer. A small cached website and a large WooCommerce installation with dozens of plugins obviously do not require the same amount of work. Hosting hardware, database performance and the electricity supply all vary too.

Fortunately, we are not completely without measurements.

A 2026 university study, Energy Consumption of Web Servers: A Comparison Between Dynamic and Static Approaches, compared dynamic WordPress with cached and statically generated versions running on Apache.

In its test, serving dynamic WordPress pages required considerably more power than serving static or cached pages. That makes sense: generating a page involves more work than returning content that has already been prepared.

It doesn’t mean every WordPress request consumes an identical amount of electricity, but it gives us some useful evidence that not running WordPress can make a meaningful difference.

Processing is only part of it

Without early rejection, the server may also return an entire HTML response to the bot. It probably won’t download every image and font afterwards, but that initial response still has to travel across the network.

The Sustainable Web Design Model version 4 provides a way to estimate the energy and emissions associated with transferring that data.

It isn’t a magic carbon meter attached to our firewall. It’s a model, and we need to be clear about the assumptions we feed into it.

So how many blocked requests make 100 kg?

One hundred kilograms per year works out at approximately 274 grams per day. The number of requests needed depends on how much data each early rejection avoids.

Under the assumptions above, avoiding a 100 KB HTML response around 49,000 times a day comes close to 100 kgCO2e per year. If the response is only 50 KB, we’d need around 97,000 blocked requests a day.

That is why our estimate refers to a heavily scanned website blocking around 50,000–100,000 unwanted requests per day. It does not apply automatically to every WordPress installation.

One request per second sounds bonkers until you look at the access logs of a public website.

Automated traffic does not sleep, take weekends off or get bored after trying /.env for the four-hundredth time.

Some websites under sustained scanning comfortably exceed these numbers. Quiet sites won’t.

If a website receives only 5,000 relevant unwanted requests a day, the saving under the same assumptions may be nearer 5–15 kg a year. Less dramatic, obviously, but still electricity being spent doing absolutely nothing useful.

What about caching and Cloudflare?

Caching can substantially reduce the work involved in serving pages. A request handled entirely by Cloudflare or another CDN might never reach the hosting server at all.

But vulnerability scanners often try unique addresses, strange query strings and sensitive filenames. Those requests are less likely to benefit from an ordinary page cache.

Deny All Firewall isn’t a replacement for caching or Cloudflare. They solve overlapping but different problems.

The useful principle is to reject unwanted work at the earliest reliable opportunity.

And the flight to Ibiza?

London to Ibiza is approximately 1,400 kilometres. Using the UK Government’s international short-haul aviation conversion factors, direct emissions attributable to one economy passenger on a one-way journey are broadly in the same neighbourhood as 100 kg.

That’s where the comparison comes from. Not from choosing a holiday destination and working backwards!

But there’s an important distinction between direct emissions and the wider climate effects of flying, so we’ve been careful about the wording.

Roughly comparable to the direct emissions attributable to one passenger on a one-way flight from London to Ibiza.

It illustrates the scale. It is not an argument that blocking malware scans somehow earns anybody a guilt-free holiday in Ibiza.

So is 100 kg guaranteed?

No … and any honest estimate of digital emissions needs to say so.

The result depends on how many unwanted requests arrive, how expensive they would have been to process, what the normal responses would have contained, how much caching is involved and where the electricity comes from.

The Sustainable Web Design Model is an estimate based partly on data transfer. It cannot measure the complete physical impact of every individual request across the hosting and network infrastructure.

So 100 kg is an order-of-magnitude estimate for a heavily scanned website, not a laboratory-certified saving that magically applies to every installation.

The more important point

Whether a particular website saves 10 kg, 100 kg or more, the engineering principle is the same:

Do not run an entire content-management system merely to discover that an obviously unwanted request should be refused.

Early rejection improves security, frees up server capacity and reduces unnecessary processing and data transfer.

The carbon saving isn’t some separate green feature bolted onto the plugin afterwards. It’s simply a consequence of making the server do less pointless work.

Security software occasionally gets to say “no” for the good of the planet.

Admittedly, it mostly just enjoys saying “no”.

References and further reading

Comments …

Leave a Reply

Your email address will not be published. Required fields are marked *