SMNTCS Disable REST API User Endpoints

描述

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.

安装

  1. Upload smntcs-disable-rest-api-user-endpoints to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.

评价

2021 年 5 月 10 日 1 回复
Great plugin, works as it should, a must for any Wordpress site.
2017 年 4 月 6 日
Does what is says, and you really shoud use this on all your sites. I just can't imagine your woocommerce customers login names being exposed via the REST API. Though the REST API is an amazing feature Kudos on this !!!
阅读所有2条评价

贡献者及开发者

「SMNTCS Disable REST API User Endpoints」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「SMNTCS Disable REST API User Endpoints」插件已被翻译至 5 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「SMNTCS Disable REST API User Endpoints」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.6 (2026.09.26)

  • Test up to WordPress 7.1
  • Update development dependencies and GitHub Actions

2.5 (2026.08.14)

2.4 (2024.12.31)

  • Test up to WordPress 6.7

2.3 (2024.10.19)

  • Test up to WordPress 6.6

2.2 (2023.10.15)

  • Test up to WordPress 6.4
  • Convert code to OOP

2.1 (2023.03.11)

  • Test up to WordPress 6.2

2.0 (2022.12.03)

  • Test up to WordPress 6.1

1.9 (2022.06.09)

  • Test up to WordPress 6.0

1.8 (2021.12.31)

  • Test up to WordPress 5.8

1.7 (2021.05.01)

1.6 (2021.01.08)

  • Test up to WordPress 5.6

1.5 (2020.05.10)

1.4 (2020.05.10)

1.3 (2019.12.26)

1.2 (2019.04.05)

  • Refactor based on PHPCS and WPCS

1.1 (2019.02.20)

  • Test up to WordPress 5.1

1.0 (2018.03.27)

  • Initial release