WS Gate

v1.0.0WordPressWP 7.1PHP 7.4+GPL-2.0-or-later

A construction gate for a site that is not ready for the public. One shared password seals the whole site: pages, the REST API, feeds, sitemaps, embeds and XML-RPC. Anonymous visitors see a "Coming soon" screen with a password form and an HTTP 503, so search engines index nothing. Logging in does not open the gate; a capability does, so editors and administrators keep working as usual.

Download v1.0.0

What it does

What stays reachable

wp-login.php and its lost-password flow, so administrators can always log in; admin-ajax.php and admin-post.php; wp-admin (WordPress guards it); static assets under wp-content and wp-includes; and media files under wp-content/uploads/, which the web server serves without PHP, so they stay public while gated.

Escape hatch

Define WSGATE_OFF as true in wp-config.php to force the gate off regardless of the setting: for emergencies, or to bring a site back up without touching the database. The ws_gate_enabled and ws_gate_bypass filters offer the same override in code.

Requirements

Install and roll out

  1. Download the zip above.
  2. In WordPress go to Plugins, Add New, Upload Plugin, and upload it.
  3. Activate WS Gate from the Plugins screen. The gate stays off until you enable it.
  4. Exclude the site from any full-page cache or CDN, or purge on enable: a cached 200 response would bypass the gate for anyone served from cache. Deactivate any other maintenance-mode plugin.
  5. WS Gate, Settings: set an access password (or generate one), tick Enable the gate, Save.
  6. WS Gate, Status: Run checks now and make sure that every row passes (homepage 503, REST 401, feed 503, sitemap 503, XML-RPC 403).
  7. Share the password with whoever needs early access.

Updates are self-hosted: the plugin reads its Update URI header and checks https://websqu.ad/updates/ws-gate.json. New versions show up in the standard WordPress updates screen.

WP-CLI

How to verify

Filters

websquad — brandsquad OÜ, Estonia. Support: [email protected]

WP Plugins · Homepage