Title: EnumGuard
Author: Alex Hedström
Published: <strong>2026 年 9 月 19 日</strong>
Last modified: 2026 年 9 月 19 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/enumguard.svg)

# EnumGuard

 作者：[Alex Hedström](https://profiles.wordpress.org/alexhedstrom/)

[下载](https://downloads.wordpress.org/plugin/enumguard.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/enumguard/#description)
 * [评价](https://cn.wordpress.org/plugins/enumguard/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/enumguard/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/enumguard/#developers)

 [支持](https://wordpress.org/support/plugin/enumguard/)

## 描述

EnumGuard is a focused WordPress plugin that stops attackers from confirming that
a username or user ID exists. WordPress still prints those signals by default; EnumGuard
closes the usual paths without hiding display names on posts.

Under Settings  EnumGuard you get three tabs:

 * Protections — overview of which discovery paths are closed
 * Settings — toggles and custom login / reset messages
 * About — plugin info

Protections covered:

 * Author ID queries (`?author=1`) that would otherwise redirect to the author archive
 * Author archives and their feeds
 * Author archive links printed in HTML
 * `author-{id}` / `author-{nicename}` body, post, and comment CSS classes
 * Core users sitemap (`/wp-sitemap-users-1.xml`)
 * Unauthenticated `/wp-json/wp/v2/users` (including `?rest_route=`)
 * REST `_embed` author payloads and author link headers
 * Login error messages that distinguish “bad username” from “bad password”
 * Lost-password responses (same confirmation whether the account exists)
 * oEmbed `author_url` / `author_name`
 * XML-RPC user-listing methods, with an optional full XML-RPC disable
 * Author sitemaps and author archive URLs from Yoast, Rank Math, and The SEO Framework

Recommended protections ship enabled. Gutenberg still reaches the users REST API
for logged-in editors. Display names stay visible. Login and reset protections also
cover WooCommerce forms when WooCommerce is active. XML-RPC can be turned off completely
if you do not need Jetpack, pingbacks, or the WordPress mobile app.

## 安装

 1. Upload the `enumguard` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Open Settings  EnumGuard to review protections.

## 常见问题

### Will authors still show on posts?

Yes. Display names stay in content. EnumGuard stops login slugs, author archive 
URLs, and existence oracles—not bylines.

### Does this break the block editor?

No. Logged-in users who can edit posts or list users still reach `/wp/v2/users`.
Guests get a generic 404.

### What about WooCommerce?

Login and lost-password protections apply to the WooCommerce account forms as well
as wp-login.php. Bylines and display names are unchanged.

### What about the WordPress mobile app?

The app uses `wp.getUsersBlogs`. That method is removed while “XML-RPC user methods”
is on. Turn that protection off if you need the app. Do not enable “Disable XML-
RPC.”

### Can I keep author archives for a magazine site?

Yes. Disable “Author archives” and “Author archive links” on the Settings tab. Keep
author ID queries blocked so `?author=1` cannot reveal the nicename.

### Does uninstall remove settings?

Yes. Uninstall deletes EnumGuard options on the current site, and on every site 
in a multisite network.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Alex Hedström ](https://profiles.wordpress.org/alexhedstrom/)

[帮助将「EnumGuard」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/enumguard)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/enumguard/)，查看[SVN仓库](https://plugins.svn.wordpress.org/enumguard/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/enumguard/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/enumguard/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/enumguard/)
 * 标签
 * [login](https://cn.wordpress.org/plugins/tags/login/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [security](https://cn.wordpress.org/plugins/tags/security/)[user enumeration](https://cn.wordpress.org/plugins/tags/user-enumeration/)
   [xml-rpc](https://cn.wordpress.org/plugins/tags/xml-rpc/)
 *  [高级视图](https://cn.wordpress.org/plugins/enumguard/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/enumguard/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/enumguard/reviews/)

## 贡献者

 *   [ Alex Hedström ](https://profiles.wordpress.org/alexhedstrom/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/enumguard/)