What it is for
A web application firewall turns away requests that look like attacks before a vulnerable plugin can answer them. Keptstone’s is managed from one place for every site, and shares what it learns across your sites.
How it runs on the site
When protection is switched on with the Firewall switch (on by default), the connector writes a small must-use file, wp-content/mu-plugins/keptstone-firewall.php. WordPress loads must-use plugins before any other, so the firewall sees each request first. A blocked request gets a plain 403 page saying it was blocked by the site’s firewall.
It checks for:
- your agency’s blocked addresses;
- attack tools by name (sqlmap, nikto, wpscan and others);
- requests for files WordPress never serves (
.env,.git/,wp-config.phpbackups,.sqldumps, web shells); - path traversal, remote file tricks, SQL injection and script injection in addresses, forms and JSON;
- PHP files uploaded by people who may not upload code, and PHP hidden inside an uploaded “image”;
- serialized PHP objects, dangerous functions passed as callbacks, and visitors asking for an administrator role.
Learning first, then blocking
1. Let it learn
A newly protected site learns for 14 days: every match is logged and nothing is blocked, except your agency’s blocklist and virtual patches. The site’s Protection card shows Learning until the date.
2. Look at what it logged
On the site’s Security tab, the Firewall part of the Protection card lists each event: the rule (SQL injection, Script injection, Path traversal, Attack tool, Probing for files and so on), the address, the page, and Blocked or Logged.
3. Allow a false alarm
Click Allow on an event. That rule stops checking that field on that page, on that site only.
4. Start blocking
When the 14 days end the site starts blocking by itself. To start sooner, click Start blocking now. Back to learning returns it to logging only.
Your agency blocklist
Keptstone looks at every site’s events together. An address is blocked on all your sites for a day when, in the last 24 hours, it:
- hit two or more of your sites with a strong rule (attack tools, probes, traversal, injection, uploads, virtual patches); or
- made 10 or more strong hits on one site; or
- showed up on three or more sites with any rule.
An address that comes back after its block ended gets a week.
On the Security page, the Firewall card shows the Most active attackers and lets owners and admins:
- Block everywhere: type an Address to block and a Reason, for a number of days or until removed;
- unblock an address;
- fill in Never block (your office, the client’s, monitors) and Save allowlist.
Never blocked: private addresses, Keptstone’s own server, the servers your sites run on, and your allowlist. Changes reach directly reachable sites at once and check-in sites at their next check-in; every heartbeat also heals a missed change within 15 minutes.
Virtual patches (Shield)
For known holes in plugins on your own sites, Keptstone has a handful of hand-written rules that block the way in. This is not a database of every WordPress hole. A site gets a patch only while it runs the vulnerable version, and loses it when the plugin is updated. Patches block in every mode, learning included.
The Firewall part of the site’s Protection card lists the patches it gets under Shield: N virtual patches block attacks on known holes in this site’s plugins until they are updated.
Lockdown of plugins nothing covers
A plugin with an open High or Critical vulnerability that nothing covers (no fixing update, no fixing zip in your Library, no virtual patch) is locked for visitors who are not signed in: its logged-out AJAX actions and REST routes are refused. Signed-in people pass. It follows the firewall’s mode, so a learning site only logs. The lock lifts by itself when the plugin is updated, removed, gets a fix in the Library or a patch. The site’s Security card marks the hole “(plugin locked for visitors)”. See vulnerabilities.
Bad crawlers
With Turn away crawlers that only take on, Bytespider, Sogou, PetalBot, MJ12bot and a few others get a 403 before WordPress does any work. Search engines, AI search and SEO tools such as Semrush and Ahrefs are never on the list.
What can go wrong
- A form or plugin stops working for visitors. Look for a Blocked event at that time on the site’s Security tab and click Allow on it. During learning nothing is blocked, which is why the first two weeks matter.
- A locked plugin’s form fails for visitors. Update the plugin, upload a fixed zip to the Library, or allow the one entry point on its lockdown event.
- Not in effect: the firewall’s test attack. Keptstone sends a harmless test (
?keptstone_fw_test=) and expects a 403. A page cache answering before WordPress makes it fail. While learning, the check shows Off with the date blocking starts. - “The firewall switches on by itself once the Keptstone Connector updates to 1.9.” The site’s connector is old and updates itself within a day.
- The site is on Care. The firewall, its patches and lockdowns are on Care + Protect + Speed. Moving a site to Care switches the firewall off on it; moving back starts it learning again.
The firewall is part of Care + Protect + Speed, $4 a site a month (pricing).
Questions
Will the firewall block my clients' editors?
No. Editors and above are trusted: they post HTML and code on purpose. The rules that read posted data apply to visitors, subscribers and customers.
Can the firewall take a site down?
It is built not to. Anything going wrong inside the firewall lets the request through, and it does nothing once the connector is deactivated or deleted.
Does it work with Cloudflare or a host's firewall in front?
Yes. It runs on the site, after whatever sits in front, and reads the visitor's real address from Cloudflare's header only when the request really comes from Cloudflare's published ranges.