Birim
REST Lock: lock /wp-json/ without breaking your site

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

Settings

REST Lock settings page

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.

Download

REST Lock is in review on WordPress.org. This page will link to it once it is approved.