
SMNTCS Disable REST API User Endpoints
v2.6Niels Lange · 2016年12月24日 上架
Hides the list of user accounts that the WordPress REST API shows to visitors who are not logged in, which helps prevent user enumeration.
- 正在使用
- 9,000+
- 评分
- 5.0 / 5
- 累计下载
- 4.9 万
- 最近更新
- 2026年9月26日
2 条评价需要 WordPress 5.5+已测试到 7.1.5PHP 5.6+
贡献者
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.