Skip to content
StaticScope
Overview
Get StaticScope

Security plugins after you go static

Wordfence, Solid Security and Patchstack protect the WordPress install, not the published files. Keep them where the risk is and lock the install down.

Plugins Updated 21 November 2026 5 min read

Going static changes the threat model, but it does not remove it. The published site is a folder of files. The WordPress install is still a PHP application with a login screen, a database and a plugin list, and it is still reachable unless you make it unreachable.

That is the sentence to hold on to when you look at a security plugin. It protects what can be attacked. On the static host there is nothing for it to protect.

What each protection does now

ProtectionWhere it belongsWhy
Web application firewallThe WordPress installIt inspects PHP requests. A static file has no request body to inspect.
Login hardening and two-factorThe WordPress installThe published site has no login. The editor still does.
Malware and file scanningThe WordPress installIt scans PHP files, which are not published.
File integrity monitoringThe WordPress installIt watches the install, not the build output.
Vulnerability alertsThe WordPress installThe static files contain no plugin code to exploit.
Bot blocking and rate limitsBoth, carefullyUseful on WordPress. Can block the crawler if it is too eager.
Security headersThe host or CDNSet them where the files are served, not in PHP.
.htaccess rulesNowhere in the buildStaticScope leaves .htaccess out by default. Apache rules do not travel to S3 or GitHub Pages.

The install is now the whole attack surface

When the public site is static, the WordPress install is no longer what visitors see. It is a private publishing tool, and it should be treated like one. That means fewer people can reach it, fewer services run on it and nothing about it is advertised in the published HTML.

The strongest single step is to put the install behind HTTP basic authentication, a VPN or an IP allowlist. StaticScope supports basic auth: enter the username and password on its settings screen and the crawler sends them. WP-Cron requests get the same headers. If you use a different protection, make sure the crawler can still reach the site, or the build fails with 401s.

Beyond access, the usual basics still apply. Strong unique passwords and two-factor for every account. Update WordPress, themes and plugins, and remove the ones you do not use. Turn off file editing in wp-config.php. Disable XML-RPC if nothing needs it. Keep backups somewhere the install cannot delete. Give editors the smallest role that lets them work.

Keep the vulnerability alerts flowing. Patchstack, Wordfence and Solid Security all watch for known flaws in the plugins you run. The point is that someone reads the alert and updates the install, not that the dashboard is green.

Security settings that break the crawl

Security plugins see the crawler as a bot, because it is one. Wordfence, Solid Security and a host WAF can rate-limit it, challenge it with JavaScript, block its country or refuse its user agent. The build then fails partway, or captures a challenge page instead of the live page.

Exclude the crawler before you debug anything else. Its user agent is StaticScope.com, and the staticscope_curl_user_agent filter changes it. Allowlist the server’s IP if the plugin supports it. Turn off country blocking for the build window. If the site is behind basic auth, use StaticScope’s fields rather than a separate login rule that the crawler cannot satisfy.

A challenge page is worse than a 403. A 403 is reported as a failed URL and the earlier copy is kept. A challenge page can be saved as a page, so a visitor later sees a “checking your browser” screen where an article should be. Check the preview, as well as the build’s exit status.

What WordPress exposes in the build

Plugins and themes leave fingerprints: a generator meta tag, REST links in the head, oEmbed endpoints, admin URLs in inline settings, author archives, comment forms and readme files. None of it is a vulnerability on a static host by itself, but it advertises the WordPress address, which is what you wanted private.

The site check reports files that still mention the WordPress host. Treat that report as a to-do list. A link back to the editor is also a usability bug: a visitor who clicks it lands on a login screen.

Also look at what the build includes. A security plugin may add a JavaScript file or a logo to every page, and that file is copied because a page references it. If it is only there for the WordPress admin bar, it is dead weight. The files list shows what is used.

Securing the published files

The static site needs less, but not nothing. Serve it over HTTPS. Set security headers at the host or CDN: a content security policy you have tested, X-Content-Type-Options: nosniff, a referrer policy and frame protection. Those are host settings, not plugin settings.

Keep source maps and configuration files out of the build. StaticScope ignores .map files by default, along with .git and server files such as .htaccess. Do not add them back with Extra files to include unless you have a reason.

Finally, do not put secrets in static files. An analytics key or a Web3Forms access key is designed to be public. An API secret, a private token or a database password is not, and a static file has no way to keep it.

Next