Title: Password for WP
Author: get3code
Published: <strong>2020 年 2 月 21 日</strong>
Last modified: 2026 年 6 月 19 日

---

搜索插件

![](https://ps.w.org/password-for-wp/assets/banner-772x250.jpg?rev=3214176)

![](https://ps.w.org/password-for-wp/assets/icon-256x256.png?rev=2248107)

# Password for WP

 作者：[get3code](https://profiles.wordpress.org/get3code/)

[下载](https://downloads.wordpress.org/plugin/password-for-wp.1.8.1.zip)

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

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

## 描述

Password for WP locks your whole website behind one password. Visitors see a clean,
full-screen login screen until they enter the correct password, while your WordPress
admin area (wp-admin) stays fully accessible.

It is perfect for sites in development, staging environments, private launches, 
client previews, or a simple maintenance mode. Setup takes less than a minute and
the plugin is completely free.

#### Key features

 * Protect the entire front-end of the site with one password.
 * Modern, responsive login screen with a clean, flat design.
 * Choose a background image from the WordPress Media Library and display it stretched
   as a full cover, with a live thumbnail preview in the settings.
 * Set a custom background color used as a fallback behind the image.
 * Add your own headings (H2 and H3) to greet or inform visitors.
 * Cache support: keeps the protection working when a page cache plugin is active(
   LiteSpeed Cache, WP Super Cache, W3 Total Cache and more).
 * Skip the password for logged-in users with a single switch.
 * CSRF-protected settings and hardened output escaping.
 * Available in English, Polish, German and French, and fully translation ready.

#### How it works

When protection is enabled, every front-end request is checked for a valid access
cookie. Visitors without the cookie are shown the login screen. After entering the
correct password, a secure cookie is set for 30 days so they are not asked again.
The WordPress login and admin panel are never blocked by the plugin.

### Upgrading

For manual upgrades via FTP, deactivate and reactivate the plugin to ensure it works
correctly.

### Translations

Password for WP ships with English, Polish, German and French translations. Additional
languages can be added using the included .po and .mo files in the /languages folder.

## 屏幕截图

[⌊Settings panel with password, cache and logged-in options.⌉⌊Settings panel with
password, cache and logged-in options.⌉[

Settings panel with password, cache and logged-in options.

[⌊The front-end login screen with a background image.⌉⌊The front-end login screen
with a background image.⌉[

The front-end login screen with a background image.

## 安装

 1. Upload the plugin folder to /wp-content/plugins/, or install it from your WordPress
    admin under Plugins > Add New.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Open the Password for WP menu in the admin sidebar.
 4. Set a password, turn protection ON, and save your changes.
 5. Optional: choose a background image, pick a background color, edit the on-screen
    texts, and configure cache and logged-in options.

## 常见问题

### Does the password also protect the WordPress admin area?

No. The password only protects the public front-end of your site. The wp-admin area
and the WordPress login page stay accessible so you can keep working normally.

### How do I add a background image?

In the plugin settings, click Select image next to Background image, choose any 
image from your Media Library, and a thumbnail preview appears immediately. The 
image is shown stretched as a full-screen cover on the login screen. Use Remove 
to clear it.

### I use a caching plugin. Will protection still work?

Yes. Enable the Cache support option. The plugin then tells your cache not to store
the login screen, varies cached pages by the access cookie, and clears the cache
when you save the settings so protected pages are never served from an old cache.

### Can logged-in users skip the password?

Yes. Turn on Do not ask logged-in users for the password and any logged-in user 
will see the site without entering the password.

### Is the plugin compatible with WordPress 7?

Yes. Password for WP is built and tested for WordPress 7 and remains backward compatible
with WordPress 6.0 and above.

### In which languages is the plugin available?

English, Polish, German and French are included, and the plugin is fully translation
ready via the bundled .po and .mo files.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ get3code ](https://profiles.wordpress.org/get3code/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.8.1

 * Fix CSS

#### 1.8.0

 * Added a background image picker using the WordPress Media Library, with a live
   thumbnail preview in the settings.
 * The selected image is displayed stretched as a full-screen cover on the login
   screen.
 * Confirmed compatibility with WordPress 7.
 * Updated translations (EN, PL, DE, FR).

#### 1.7.0

 * Redesigned admin panel and login screen with a clean, flat, borderless design.
 * Added cache support for page caching plugins (LiteSpeed, WP Super Cache, W3 Total
   Cache).
 * Added an option to skip the password for logged-in users.
 * Replaced the deprecated admin bar API with add_node().
 * Hardened output escaping and switched to constant-time password comparison.
 * Restricted admin assets to the plugin page only and added asset versioning.
 * Tested on WordPress 6.9.

#### 1.6.1

 * Added Changelog.
 * Improved CSS for colorpicker.

#### 1.6

 * Added CSRF protection.
 * Tested on WordPress 6.7.

#### 1.5

 * Improved translations.
 * Tested on WordPress 6.x.

#### 1.4

 * Added support for WordPress 6+.

#### 1.3

 * Plugin tested on WordPress 6.0 and above.

#### 1.2

 * Plugin tested on WordPress 5.7.

#### 1.1

 * Plugin tested on WordPress 5.5.

#### 1.0

 * Initial release to the WordPress repository.

## 额外信息

 *  版本 **1.8.1**
 *  最后更新：**3 天前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/password-for-wp/) 、 [English (US)](https://wordpress.org/plugins/password-for-wp/)、
   [Polish](https://pl.wordpress.org/plugins/password-for-wp/) 、 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/password-for-wp/)
   和 [Ukrainian](https://uk.wordpress.org/plugins/password-for-wp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/password-for-wp)
 * 标签
 * [maintenance mode](https://cn.wordpress.org/plugins/tags/maintenance-mode/)[password](https://cn.wordpress.org/plugins/tags/password/)
   [Password Protect](https://cn.wordpress.org/plugins/tags/password-protect/)[restrict content](https://cn.wordpress.org/plugins/tags/restrict-content/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/password-for-wp/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ get3code ](https://profiles.wordpress.org/get3code/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/donate/?hosted_button_id=CP33P6D3W42R4)