跳到内容

SMNTCS Disable REST API User Endpoints

v2.6

Niels 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums