Title: Protect WP Admin
Author: WP-EXPERTS.IN
Published: <strong>2014 年 10 月 20 日</strong>
Last modified: 2026 年 2 月 5 日

---

搜索插件

![](https://ps.w.org/protect-wp-admin/assets/banner-772x250.jpg?rev=2313728)

![](https://ps.w.org/protect-wp-admin/assets/icon-128x128.png?rev=1016876)

# Protect WP Admin

 作者：[WP-EXPERTS.IN](https://profiles.wordpress.org/india-web-developer/)

[下载](https://downloads.wordpress.org/plugin/protect-wp-admin.4.2.zip)

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

 [支持](https://wordpress.org/support/plugin/protect-wp-admin/)

## 描述

Protect WP Admin adds an extra security layer to your WP site by allowing you to
rename and secure the wp-admin and wp-login.php URLs.

 * Change default admin URL (e.g., /wp-admin to /myadmin)
 * Restrict access to dashboard by roles or specific user IDs
 * Customize login page colors and logo
 * Block access to default login URLs

Stop bots and hackers from brute-forcing your login page. This plugin is ideal for
any site looking to increase login security without modifying core files.

**Video Demo:**
 https://youtu.be/Mxr2MLDNACE

**Pro Add-on Available:**
 [Click here to download add-on](https://www.wp-experts.in/products/protect-wp-admin-pro)

#### 特点

 * Define Custom WP Admin Login URL (e.g., http://yourdomain.com/myadmin)
 * Add custom logo and styling to login page
 * Restrict wp-admin access to only admin or defined user IDs
 * Redirect all unauthorized users and bots

#### Pro Features

 * Rename wp-admin completely
 * Set login attempt limits
 * Track login history
 * Change usernames
 * More style controls

**Get the Pro Version:**
 [Protect WP Admin Pro](https://www.wp-experts.in/products/protect-wp-admin-pro/?utm_source=wordpress.org&utm_medium=free-plugin&utm_campaign=15off)

### License

This plugin is licensed under the GPLv2 or later.
 https://www.gnu.org/licenses/
gpl-2.0.html

## 屏幕截图

[⌊Settings Panel⌉⌊Settings Panel⌉[

Settings Panel

[⌊Login Customization⌉⌊Login Customization⌉[

Login Customization

[⌊Restriction Settings⌉⌊Restriction Settings⌉[

Restriction Settings

[⌊Pro 特点 Preview⌉⌊Pro 特点 Preview⌉[

Pro 特点 Preview

[⌊Login Tracker (Pro)⌉⌊Login Tracker (Pro)⌉[

Login Tracker (Pro)

[[

[[

[[

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/`
 2. Activate the plugin via the Plugins screen
 3. Go to **Settings > Protect WP Admin** to configure the plugin
 4. Update permalink structure under **Settings > Permalinks** (important!)

## 常见问题

### I’m locked out of admin. What can I do?

Rename the plugin folder via FTP (e.g., `/protect-wp-admin` to `/pwa-disabled`).
This disables the plugin.

### I see a 404 page at the new login URL

Ensure your `.htaccess` is writable and permalinks are not set to “Plain.”

### Can I restrict users by role?

Yes. Only administrators or allowed user IDs will have wp-admin access if enabled.

### Does it work with custom themes?

Yes. It works independently of your theme.

### Does it block brute force attacks?

It blocks access to the default login URLs, which stops many automated attacks.

## 评价

![](https://secure.gravatar.com/avatar/d001f77039b3abfe3d03f8b47d06cd5c1de095a476c68f4f00f26bcdb7a6bd84?
s=60&d=retro&r=g)

### 󠀁[Simple Its all done.](https://wordpress.org/support/topic/simple-its-all-done/)󠁿

 [truekandyan](https://profiles.wordpress.org/truekandyan/) 2021 年 7 月 17 日

Thank you for giving us Simple and Amazing plugin. Please check Login form customizing
is not working. Hide wp-admin is working good. Thanks again.

![](https://secure.gravatar.com/avatar/3d715e6ccee9e03a2560d6d6531baf4117240f60da9a7ff5331cc25bae554ea1?
s=60&d=retro&r=g)

### 󠀁[A loophole has been found by hackers](https://wordpress.org/support/topic/a-loophole-has-been-found-by-hackers/)󠁿

 [samuel](https://profiles.wordpress.org/samueljbwong/) 2021 年 5 月 3 日

A loophole has been found by hackers. My websites have been attacked by login brute-
force thousands times everyday. Hackers could access wp-login.php directly when 
Protect-wp-admin was enabled. I try disabling the file access to wp-login.php in.
htaccess but it also disable accessing the login page via the URL defined in Protect-
wp-admin. Finally, it makes this plugin useless.

![](https://secure.gravatar.com/avatar/d3b2ed9edf6758860c84c826384cb36ee3b34b307e56047838d9582847699f7a?
s=60&d=retro&r=g)

### 󠀁[Plugin created a redirect loop after WordPress version update](https://wordpress.org/support/topic/plugin-created-a-redirect-loop-after-wordpress-version-update/)󠁿

 [elasticio](https://profiles.wordpress.org/elasticio/) 2021 年 3 月 1 日

After updating the Wordpress version to 5.6, none of my team could log in any longer.
Both URLs, the one created through the plugin and the original wp-admin link, kept
redirecting to the Homepage. I had to deactivated all the plugins via MyPHPAdmin
to get back the control of our website. This plugin was the first I reactivated 
and I could immediately replicate the issue. This is imho not acceptable.

![](https://secure.gravatar.com/avatar/f24ff1bfb44813013c460a24d48d1bb6b36fa545d37d3f637e4d38db3eb02a80?
s=60&d=retro&r=g)

### 󠀁[Works perfect & Awesome support](https://wordpress.org/support/topic/works-perfect-awesome-support-2/)󠁿

 [ichmirmich](https://profiles.wordpress.org/ichmirmich/) 2021 年 1 月 21 日

The plugin works as expected and after a recent WP update, it didn’t work anymore.
contacted the support and they helped me out super quick.

![](https://secure.gravatar.com/avatar/829e9bf25558a1aa5851f7bb7bd876e9d88e73c910f35f529129cd0faf2e8284?
s=60&d=retro&r=g)

### 󠀁[NOT compatible with WP 5.6](https://wordpress.org/support/topic/not-compatible-with-wp-5-6/)󠁿

 [bsp7744](https://profiles.wordpress.org/bsp7744/) 2021 年 1 月 11 日 2 回复

Junk, do not use. Updated to Wordpress 5.6 and I am now locked out of ALL my websites.
Avoid at all costs.

![](https://secure.gravatar.com/avatar/b5f753c50c9f589cb47e6728b490d1c8ad73dec5bd9bd8b4e686f59c9999ed3e?
s=60&d=retro&r=g)

### 󠀁[Cannot login](https://wordpress.org/support/topic/cannot-login-110/)󠁿

 [pivonka1975](https://profiles.wordpress.org/pivonka1975/) 2020 年 12 月 10 日 
1 回复

Cannot log in today after WordPress 5.6 renewal, have to disable this plugin via
FTP. Bad experience!

 [ 阅读所有50条评价 ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ WP-EXPERTS.IN ](https://profiles.wordpress.org/india-web-developer/)
 *   [ WP-EXPERTS.IN ](https://profiles.wordpress.org/wpexpertsin/)

「Protect WP Admin」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/protect-wp-admin/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 4.0

 * Fixed major bug
 * Tested with WordPress 6.6.2

#### 3.8

 * Security updates
 * Tested with WordPress 5.9.3

#### 3.7

 * Fixed URL issue
 * Code optimization

#### 3.6

 * Optimized code and security
 * Tested with WordPress 5.8.2

#### 3.5

 * Resolved double slash issue in login URL

#### 3.4

 * Added admin bar restriction for non-admin users

#### 3.3

 * Fixed login page not found when installed in subdirectory
 * Released Add-on v2.0

#### 3.0 – 1.0

 * Initial stable releases with improvements and bug fixes

## 额外信息

 *  版本 **4.2**
 *  最后更新：**4 月前**
 *  活跃安装数量 **10,000+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/protect-wp-admin/) 和 [Swedish](https://sv.wordpress.org/plugins/protect-wp-admin/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/protect-wp-admin)
 * 标签
 * [admin url](https://cn.wordpress.org/plugins/tags/admin-url/)[protect admin](https://cn.wordpress.org/plugins/tags/protect-admin/)
   [secure admin](https://cn.wordpress.org/plugins/tags/secure-admin/)[secure login](https://cn.wordpress.org/plugins/tags/secure-login/)
 *  [高级视图](https://cn.wordpress.org/plugins/protect-wp-admin/advanced/)

## 评级

 3.6 星（最高 5 星）。

 *  [  28 条 5 星评价     ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/?filter=5)
 *  [  5 条 4 星评价     ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/?filter=2)
 *  [  16 条 1 星评价     ](https://wordpress.org/support/plugin/protect-wp-admin/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/protect-wp-admin/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/protect-wp-admin/reviews/)

## 贡献者

 *   [ WP-EXPERTS.IN ](https://profiles.wordpress.org/india-web-developer/)
 *   [ WP-EXPERTS.IN ](https://profiles.wordpress.org/wpexpertsin/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/protect-wp-admin/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A)