Deny All Firewall
Stop unwanted requests before WordPress loads. Deny All Firewall uses .htaccess to allow genuine content and refuse everything else.
Solid choice
Deny All Firewall is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites and was last updated 4 days ago, and scores 68/100 on our health check.
- Actively developed — last update 4 days ago
- Tested with the latest WordPress (7.1)
- Momentum — downloads up 41.8% vs the previous 30 days
- Small user base (50+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Deny All Firewall stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| carbon footprint | #5 |
| firewall | #56 |
| htaccess | >100 |
| performance | >100 |
| security | >100 |
Version adoption
Share of active sites per release.
About Deny All Firewall
From the official readme · v2.0.6Description
Most WordPress firewalls start with everything open and look for known bad requests.
Deny All Firewall turns that idea around.
It examines your WordPress site and creates Apache .htaccess rules that allow its genuine public content and normal WordPress functions. Requests outside those rules are refused by the web server before WordPress, PHP, the database, your theme or your other plugins need to process them.
That means less work for your server and fewer opportunities for automated scanners to explore files and addresses your website does not need to expose.
A deny-by-default firewall for WordPress
Deny All Firewall generates rules specifically for the site on which it is installed. Depending on your content and configuration, those rules can:
- Allow published pages, posts, products, media, archives, feeds and sitemaps
- Keep the WordPress REST API, WP-Cron and
admin-ajax.phpavailable - Allow the public files required by your active theme and plugins
- Refuse direct access to PHP and other files that should not be requested publicly
- Reject unsupported HTTP methods before they reach WordPress
- Reduce common reconnaissance such as user enumeration and plugin or theme probing
- Reject routine
/wp-admin/scanner traffic unless the request presents this website’s WordPress logged-in cookie - Work with Cloudflare visitor IP addresses when the request genuinely came through Cloudflare
- Send refused requests to the plugin’s lightweight blocked page
This is not a generic list copied into every .htaccess file. The firewall is built around the content and features WordPress reports for your website.
Automatic protection that adapts to your site
Content Protection uses individual rules on smaller sites. When the number of rules would make .htaccess too large or slow, the plugin automatically switches to broader public-content matching. If the site becomes smaller again, exact protection can return automatically.
Admin Access Protection can reject routine /wp-admin/ scanner traffic unless the browser presents this website’s WordPress logged-in cookie. Apache checks only for the cookie’s presence; WordPress still validates it and requires users to sign in normally.
These decisions are made when the firewall rules are refreshed, not on every page view.
Optional Extra Request Protection
Extra Request Protection checks information added after a ? in a page request and blocks unexpected form submissions. Normal WordPress requests and anything you explicitly allow remain available.
This is intentionally strict. Forms, shops, webhooks and third-party integrations can have site-specific requirements, so test them carefully after enabling it.
Clear troubleshooting when something genuine is blocked
Temporarily enable Blocked Request Troubleshooting to record refused addresses. The settings page explains common requests and lets you add a recognised request directly to Allowed Requests and Redirects.
Allowed entries can:
- Match one exact address
- Use an advanced pattern when genuinely needed
- Permanently redirect an old address elsewhere with a
301response
Troubleshooting is intended to be temporary. Its log is limited to approximately 10 MB and is deleted when troubleshooting is disabled.
Less repeated work
The plugin creates a physical copy of WordPress’s filtered robots.txt output when the firewall is refreshed. Search engines can then read the same instructions without repeatedly loading WordPress and PHP. An existing robots.txt file that was not created by Deny All Firewall is preserved.
WordPress’s standard sitemap remains available, along with supported sitemap files created by SEO plugins.
The plugin also:
- Refreshes exact firewall rules automatically after relevant content changes and alerts administrators if an update is still pending
- Records a small selection of blocked suspected malicious requests and summarises the last 60 minutes for administrators on the Dashboard
- Offers an optional HTTPS redirect for sites on which HTTPS is already working
- Removes WordPress version information from page and feed metadata
- Removes its generated
.htaccessrules, generatedrobots.txtfile and runtime files when properly deactivated
Security, performance and unnecessary carbon emissions
Refusing nonsense at the web-server level is much cheaper than loading an entire content-management system merely to decide that the requested content does not exist.
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!
Read the calculation, assumptions and limitations.
Important requirements
- Deny All Firewall currently supports Apache, using
mod_rewriteand.htaccess - Your site’s
.htaccessfile must be writable; the website root must also be writable when the plugin needs to create its staticrobots.txtfile - Because this is a deny-by-default firewall, test important forms, checkout journeys, webhooks and integrations after enabling it
- Keep a normal backup and know how to edit
.htaccessthrough your hosting control panel or file manager before enabling any firewall
If the plugin blocks a genuine request that is not covered by its troubleshooting tools, please report it through the support forum.
Installation
- Install and activate Deny All Firewall through the WordPress Plugins screen.
- Open Settings → Deny All Firewall.
- Select Firewall Enabled and review the settings that appear.
- Save the settings to generate the firewall rules.
- Test the public site, forms, search, sign-in, administration area and any shop or third-party integrations.
- If something genuine is refused, temporarily enable Blocked Request Troubleshooting, reproduce the request and review it before allowing it.
Refresh the firewall rules after configuration changes that affect routing. The plugin automatically refreshes exact content rules after relevant content changes.
Changelog
Fixed firewall exceptions for Block wp-login’s private login URLs.
2.0.6
- Fixed firewall exceptions for Block wp-login’s private login URLs, including installations in subdirectories.
2.0.5
- Disabled WordPress 7.2’s random content redirects by default.
- Added firewall exceptions for Matomo Analytics reporting and tracking endpoints when the plugin is active.
- Fixed Wordfence’s View Differences and View File links when Extra Request Protection is enabled.
- Automatically refreshes exact content rules after relevant content changes, with a manual retry if the refresh cannot complete.
- Added a cooldown for failed automatic upgrade refreshes and skipped rewriting identical firewall rules.
- Simplified the HTTPS Redirect setting by hiding the unchecked option when a permanent HTTPS redirect is detected or the check is inconclusive.
- Fixed firewall rewrite paths and redirects for WordPress installations in subdirectories, including sites with a separate public root.
2.0.4
- Added the
daf_enable_static_robots_txtfilter so sites requiring hostname-specific robots.txt output can keep it dynamic
2.0.3
- Replaced changing-IP administration access rules with lightweight logged-in-cookie detection
- Added hourly immediate-threat logs for high-confidence secret, exploit and internal WordPress PHP requests
- Added a Dashboard summary of immediate threats detected during the last 60 minutes
- Moved runtime files into a protected
wp-content/deny-all-firewalldirectory
2.0.2
- Preserved REST API exemptions through WordPress internal rewrites so valid form submissions and authenticated REST requests remain available
- Clarified when existing installations need to refresh their firewall rules to change Content Protection or Admin Access Protection mode
- Removed generated blocked-page data, troubleshooting logs, the legacy refresh schedule and the firewall-rule lock file on deactivation
2.0.1
- Removed an unnecessary Block wp-login exception so public administration-email confirmation requests remain blocked
- Prevented activation or enabling when an incompatible server or unusable
.htaccesslocation can be confirmed - Added refresh locking to prevent simultaneous requests from duplicating, replacing or restoring firewall rules
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Deny All Firewall alternatives
All carbon footprint plugins →FAQ
Deny All Firewall: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Deny All Firewall free?
Yes. Deny All Firewall is free to download and use from the official WordPress.org plugin directory.
Is Deny All Firewall safe to use in 2026?
Deny All Firewall is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites and was last updated 4 days ago, and scores 68/100 on our health check.
How many websites use Deny All Firewall?
Deny All Firewall is active on 50+ WordPress websites and has been downloaded 12,145 times since it launched in May 2019. It was downloaded 583 times in the last 30 days.
Does Deny All Firewall work with WordPress 7.1?
Yes. The developer has tested Deny All Firewall up to WordPress 7.2, the latest release. It requires WordPress 5.0 or newer.
What PHP version does Deny All Firewall need?
Deny All Firewall requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Deny All Firewall last updated?
The latest version, 2.0.6, was released on November 28, 2026 (4 days ago).
Who makes Deny All Firewall?
Deny All Firewall is developed and maintained by Olly Campion.
What are the best alternatives to Deny All Firewall?
The most popular alternatives to Deny All Firewall are GreenMetrics (40+ installs), Carbonfooter (10+ installs) and GreenAudit (<10 installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
