Birim REST Lock
WordPress publishes a public API at /wp-json/. Anyone can list your usernames and the plugins you run. REST Lock closes it for logged-out visitors and keeps your site working.
What it does
- Allowlist or blocklist routes, with
*wildcards. - Stops username enumeration on
/wp/v2/users. - Hides what you run: blocks the route index and namespace listings, removes REST discovery links.
- Role rules: restrict subscribers or customers too. Administrators are never blocked.
- Safe defaults for Contact Form 7, WooCommerce checkout, oEmbed and Jetpack. CORS preflight passes through.
- One-click import from the Disable REST API plugin.
- One file. PHP 7.4+, WordPress 6.0+. No tracking, no external requests.
Settings
Moving from Disable REST API
Install REST Lock, open Settings → REST Lock, click Import from Disable REST API, review, then deactivate the old plugin.
Check it works
curl -i https://your-site.com/wp-json/wp/v2/users
You should get 401.
Optional paid service (planned)
REST Lock is complete and free. We're planning an optional, opt-in service for the parts that are hard to do on your own server, starting with approvals (reliable email, certificates, an off-site archive). If you'd want something for REST Lock too, such as a log of blocked requests or alerts, tell us in the waitlist note. Join the waitlist.
Download
Free on WordPress.org: Birim REST Lock. Or in your dashboard: Plugins → Add New, search for "Birim REST Lock", then Install and Activate.