Skip to content
StaticScope
Overview
Get StaticScope

Keep the editing WordPress private

The static site is public; the WordPress that builds it should not be. Pick an access model, add the basics and keep backups.

Getting started Updated 21 November 2026 6 min read

The static site has no PHP, no login and no database. The editing WordPress still does. Publishing a static copy does not retire the security work; it moves it. Anyone who reaches the editing site can log in, read drafts or change what the next build will say.

That is the part people miss. A static site can be safe to serve and still be built by a WordPress install that is one weak password away from being taken over. The public files are only as trustworthy as the machine that produces them.

Choose an access model

Pick one model. Layering all of them sounds thorough and usually ends with a crawler that cannot reach the site.

  • Local-only. The editing site runs on your machine and has no public address. Strongest and simplest if you are the only editor.
  • VPN or private network. The site is reachable only inside a network you control. Strong for teams, with the most friction.
  • HTTP basic auth. A password prompt at the edge. Simple, works with StaticScope, and good enough for a small team when it runs over HTTPS.
  • IP allowlist. Only named addresses can connect. Strong, but fragile with changing home IPs and fragile for the server itself.
  • A public WordPress with hardening. The last resort. You are relying on WordPress, plugin and password hygiene, and you will be probed.

Local-only

Studio and Local both give you a WordPress that nothing outside the machine can reach. That removes the login-attack surface from the internet. It does not remove the need for disk encryption, a screen lock and backups. A stolen laptop with an unencrypted Local site is a data breach, as well as a lost computer.

Do not leave a tunnel to a local site running. A temporary tunnel for a client is a decision with an end; left open, you have a public WordPress again, usually with a weaker password than production.

The cost is availability. Scheduled posts, background builds and client previews stop when the laptop sleeps. If those matter, use a private host or a gate.

Put a gate in front

HTTP basic auth

Put basic auth at the web server or CDN, not in a WordPress plugin. A plugin gate still runs PHP and can be bypassed by another plugin’s bug. nginx needs two lines:

auth_basic "Private";
auth_basic_user_file /etc/nginx/.htpasswd;

StaticScope has to get through the prompt. Open StaticScope → Settings → How pages are copied and fill in Password prompt username and Password prompt password. The crawler sends them on every request; without them the build stops on a 401.

The password is stored in the staticscope_options option. Treat a database export as a credential file. Use a unique password, change it when someone leaves, and do not reuse an administrator password. Basic auth over plain HTTP sends it with every request, lightly encoded; use HTTPS.

Cloudflare Access and similar SSO gates want a browser login or a service token, and StaticScope does not complete an SSO flow. Use a bypass rule for the server’s address or basic auth in front of the site.

VPN or private network

A VPN such as Tailscale or WireGuard is the strongest option for a team. The site binds to a private address or is firewalled to the VPN range, so there is no public login page to probe. The build machine must be on the same network: if WordPress is on a staging server and the build runs there, fine; if you build from a laptop, the laptop needs the VPN too.

The usual failure is name resolution, not access control. The server tries to reach its own private hostname, gets a public address and the crawl fails with a connection error. Test from the shell on the build machine.

IP allowlist

Allow the addresses that need to edit, plus the address the server uses to reach itself. A dynamic home IP means maintenance, and a missed self-request fails with a timeout rather than a login error. If you cannot guarantee a stable address, basic auth or a VPN is less fragile.

Harden the WordPress that remains

  • Update WordPress, themes and plugins. Remove what you do not use; an inactive plugin is still code on disk.
  • Use strong, unique passwords and two-factor authentication for every administrator. One shared admin account undoes both.
  • Give people the smallest role they need. An editor does not need manage_options unless they also manage the static site.
  • Disable the file editor with define( 'DISALLOW_FILE_EDIT', true ); in wp-config.php. It does not stop a determined attacker, but it blocks many low-effort attempts.
  • Turn off XML-RPC if nothing needs it. Add add_filter( 'xmlrpc_enabled', '__return_false' ); and block xmlrpc.php at the web server. Jetpack and some publishing apps need it, so check first.
  • Rate-limit login attempts at the edge. A WordPress plugin helps, but the web server or CDN sees the traffic first.
  • Do not break the editor or the login flow. Renaming wp-login.php breaks bookmarks and password resets; blocking the REST API breaks the block editor. If you change either, test the whole flow. Turn off WP_DEBUG and keep debug.log blocked.

What noindex does and does not do

Settings → Reading → Discourage search engines from indexing this site adds a noindex hint and removes the sitemap. It does not stop anyone loading the site, reading a draft or finding the login page. A robots.txt disallow is a request, not a lock.

Noindex is not a lock. A noindex page is still readable by anyone with the URL. The login page is still a login page.

The build folders

StaticScope writes three folders under wp-content/uploads: crawled, prepared and preview. All are reachable by URL on a default host. The preview needs to be; the other two do not.

Block wp-content/uploads/staticscope-crawled-site and staticscope-processed-site at the web server, or put uploads behind the same password as WordPress. Keep the preview reachable or you lose it. Turn off directory listings; an index of the prepared site maps everything you are about to publish.

Add-on credentials live in the database too: the GitHub token is encrypted with the site’s salts, the S3 secret is encrypted, and the Sync token is stored as plain text. A database backup is therefore a secret. Store it encrypted and delete old copies.

Backups

A static site is not a backup of WordPress. It has no drafts, users, comments, plugin settings or database. Back up the editing WordPress separately.

  • Database. A SQL dump, taken consistently. This is the part people forget.
  • Uploads. Images, documents and the last build.
  • Code. wp-config.php and any custom theme or plugin not in a repository.
  • The static output. A ZIP of the prepared site after a good build is the fastest rollback.

Keep backups off the machine, encrypted and versioned. Daily for a week, weekly for a month, plus one before upgrades, is reasonable for a small site. Test a restore; an untested backup is not a backup.

During a migration, keep the old host and database until the static site has been stable. DNS is the rollback, and it only works if the old site is still there.

A baseline worth keeping

  • The editing site is local, behind a VPN, or behind basic auth over HTTPS.
  • Administrators use 2FA and unique passwords. No shared accounts.
  • Login attempts are rate-limited at the edge.
  • Backups are off-machine, encrypted and restored at least once.
  • The static host, DNS registrar and GitHub account are secured too. Taking over the host is easier than taking over WordPress.

Next