跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

FormCourier User Enumeration Protection

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

FormCourier User Enumeration Protection

作者:Den Slav
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

FormCourier User Enumeration Protection reduces public exposure of WordPress usernames and author information without disabling the entire REST API.

The plugin:

  • Blocks /wp-json/wp/v2/users for unauthenticated visitors.
  • Blocks individual REST user endpoints such as /wp-json/wp/v2/users/1.
  • Blocks numeric ?author=ID enumeration and returns a 404 response.
  • Adds an option to hide public /author/username/ archive pages.
  • Removes the core WordPress user sitemap to reduce public author enumeration.
  • Replaces revealing WordPress login errors with a generic error message.
  • Keeps REST user endpoints available to authenticated users.
  • Does not collect, transmit, or share data with external services.

No external account, API key, or third-party service is required.

Settings

Go to Settings > User Enumeration Protection.

The Hide public author archives option controls whether normal /author/username/ archive pages are available.

When enabled, public author archive URLs return 404.

When disabled, normal author archives remain available. Numeric ?author=ID enumeration remains blocked regardless of this setting.

Privacy

This plugin does not collect, store, transmit, or share personal data with any external service.

The plugin stores one WordPress option that controls whether public author archives are hidden. This option is removed when the plugin is uninstalled.

安装

  1. Upload the plugin ZIP from Plugins > Add New > Upload Plugin, or upload the plugin folder to /wp-content/plugins/.
  2. Activate FormCourier User Enumeration Protection.
  3. Open Settings > User Enumeration Protection.
  4. Choose whether public author archives should be hidden.

For a quick test, open /wp-json/wp/v2/users in a private or incognito browser window. The request should return HTTP 403.

A request such as /?author=1 should return 404.

常见问题

Does the plugin disable the WordPress REST API?

No. It only blocks the core WordPress REST API user endpoints for unauthenticated visitors. Other REST API routes remain available.

Can I keep author archive pages enabled?

Yes. Disable Hide public author archives in the plugin settings. Normal /author/username/ pages will remain available, while numeric ?author=ID enumeration stays blocked.

Does this plugin change WordPress usernames or passwords?

No. It does not modify user accounts, usernames, passwords, roles, or capabilities.

Does this plugin prevent brute-force attacks?

No. It reduces common user-enumeration signals. Use strong passwords, two-factor authentication, and login rate limiting as separate security measures.

Does the plugin send any data to FormCourier or another service?

No. The plugin works locally on the WordPress site and does not send data to external services.

评价

此插件暂无评价。

贡献者及开发者

「FormCourier User Enumeration Protection」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Den Slav

帮助将「FormCourier User Enumeration Protection」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.1.2

  • Added WordPress and PHP requirement headers to the main plugin file.
  • Added uninstall cleanup for the plugin setting.
  • Expanded the WordPress.org readme with FAQ and privacy information.
  • Prepared plugin metadata for WordPress.org directory submission.

1.1.1

  • Removed plugin and author website links from the plugin header.
  • Added a direct Settings link on the Plugins screen.

1.1.0

  • Added a settings page under WordPress Settings.
  • Added an option to enable or disable public author archives.
  • Numeric ?author=ID enumeration remains blocked regardless of the archive setting.

1.0.1

  • Improved author enumeration blocking to return 404 instead of redirecting.
  • Improved compatibility with WordPress plugin checks.

1.0.0

  • Initial release.

额外信息

  • 版本 1.1.2
  • 最后更新:1 月前
  • 活跃安装数量 10+
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 7.1.4
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    author archivelogin securityrest-apisecurityuser enumeration
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Den Slav

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

China 简体中文

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗