Developers
Security
How Stattery’s security checks reach your site, the WordPress plugin‘s signed security route, and the exact Version Leaks rules for each web server.

The Edge Observer Comes First
On a site with a Stattery Edge Observer, Version Leaks are refused at the edge and nothing on the server changes. The server rules below are for sites without one. Set up an Edge Observer.
The Checker
Checks come from Stattery’s own Cloudflare Worker with this user agent. They are GET requests only, with a Range header on anything that could be large, and they stop when the site answers 429 or refuses the checker altogether. A refusal on one risky address alone counts as that address being protected.
StatterySecurityCheck/1.0 (+https://stattery.com)
Stattery treats that user agent as its own only when Stattery’s Worker sent it. Anything else claiming it gets no special treatment. If your firewall needs to let it through, allow it by user agent together with Cloudflare’s CF-Worker: stattery.com header.
The Plugin’s Route
The Stattery WordPress plugin (0.9.28 and later) answers POST /wp-json/stattery/v1/security, signed like its other routes with the site’s lookup key: an X-Stattery-Ts header (milliseconds) and X-Stattery-Hmac, the hex HMAC-SHA256 of ts + "." + body. Unsigned, stale or oversized requests get 403.
{"op":"report"}: WordPress, PHP, plugin and theme versions, whether sign-ups are open and their role, the file editor, PHP errors shown, XML-RPC, the server kind, and administrators as an ID, when the account was made and whether its name is easy to guess. Never a sign-in name, email or password.{"op":"fix","item":"users","act":"preview"}:itemisusers,xmlrpc,fileedit,errors,role,debuglogorleaks. The answer listschangesin plain words andapplied. Since 0.9.37 this route only previews:applyandundoget 400 and nothing changes.- Fixes are made in WordPress. Fix It For Me links to
/wp-admin/options-general.php?page=stattery-security-fix, which needs an administrator and a nonce, shows exactly what will change, and changes nothing until the admin presses the button. Undo works the same way. - Fixes in force are kept in the option
stattery_poc_secfix. Undo puts back what was there.
Version Leaks: Apache And LiteSpeed
Fix It For Me writes this block at the top of .htaccess (your server’s address, loopback and your exceptions are let through). Undo removes exactly the lines between the markers and leaves the rest of the file byte for byte.
# BEGIN Stattery Version Leaks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteCond %{REMOTE_ADDR} !^::1$
RewriteCond %{REMOTE_ADDR} !^203\.0\.113\.10$
RewriteRule ^/?wp-content/(plugins|themes)/[^/]+/(readme|changelog|change_log|changes|history)(\.(txt|md|markdown|html?))?$ - [F,NC]
</IfModule>
# END Stattery Version Leaks
Version Leaks: nginx
The plugin can’t change nginx’s settings, so the Security page shows these lines with your addresses and exceptions filled in. Add them to the site’s server block, reload nginx, then press I Added Them: Check From Outside.
location ~* ^/?wp-content/(plugins|themes)/[^/]+/(readme|changelog|change_log|changes|history)(\.(txt|md|markdown|html?))?$ {
allow 127.0.0.1;
allow ::1;
allow 203.0.113.10;
deny all;
}
An exception for one file goes before it, for example location = /wp-content/plugins/viewer3d/readme.txt { }.
Card Skimmer Watch
On cart, checkout and payment pages the Stattery tag sends the names of the outside hosts the page loaded scripts from, and only when that list changes. No script contents, no form fields and nothing a visitor typed.
Using the Security page? See Security help.