SMNTCS Disable REST API User Endpoints

plugin banner

Disable the REST API user endpoints due to obscure user slugs

Author:Niels Lange (profile at wordpress.org)
WordPress version required:5.5
WordPress version tested:7.1.2
Plugin version:2.6
Added to WordPress repository:24-12-2016
Last updated:26-09-2026
Rating, %:100
Rated by:2
Plugin URI:https://github.com/nielslange/smntcs-disable-...
Total downloads:49 039
Active installs:9 000+
plugin download
Click to start download

By default, anyone can request /wp-json/wp/v2/users on a WordPress site and get a list of every author’s username slug. Attackers use that list to guess logins.

SMNTCS Disable REST API User Endpoints removes the user endpoints from the REST API for visitors who are not logged in. Logged-in users and everything else in the REST API keep working, including the block editor.

There are no settings. Activate the plugin and the user endpoints are gone.

Contribute

Contributions are more than welcome. Simply head over to GitHub and open an issue or a pull request.


ChangeLog