Linux 软件免费装
Banner图

Password Protected

开发者 husobj
wpexpertsio
更新时间 2022年11月25日 20:49
PHP版本: 5.6 及以上
WordPress版本: 6.0
版权: GPLv2 or later

标签

login protect password password protect

下载

2.5.3 1.2 1.2.1 1.2.2 1.3 1.4 1.5 1.6 1.6.1 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.0.1 2.0.2 2.0.3 2.1 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.4 1.1 2.5.2 1.0 1.6.2 2.2 2.5 2.5.1

详情介绍:

A very simple way to quickly password protect your WordPress site with a single password. This plugin only protects your WordPress generated content. It does not protect images or uploaded files so if you enter and exact URL to in image file it will still be accessible. Features include:
Please note, this plugin works by setting a cookie to allow access to the site. If you are using a caching plugin or web hosting such as WP Engine that has in-built caching, you will need to configure the caching service to be disabled if the Password Protected cookie is set.
翻译 If you would like to translate this plugin you can easily contribute at the Translating WordPress page. The stable plugin needs to be 95% translated for a language file to be available to download/update via WordPress.

安装:

To install and configure this plugin...
  1. Upload or install the plugin through your WordPress admin.
  2. Activate the plugin via the 'Plugins' admin menu.
  3. Configure the password options in the Password Protected settings.
Upgrading If you are upgrading manually via FTP rather that through the WordPress automatic upgrade link, please de-activate and re-activate the plugin to ensure the plugin upgrades correctly.

屏幕截图:

  • Login page perfectly mimicks the WordPress login.
  • Password Protected settings page.

升级注意事项:

2.5.1 Author name conflict resolved 2.5 Fixes robots tag for WordPress 5.7+ 2.4 Fixes to help with caching issues and favicon on login page. 2.3 Fixed an issue with "testcookie" on some hosts. Added password_protected_cookie_name and password_protected_options_page_capability filters. 2.2.5 Added password_protected_login_password_title filter to allow customizing the "Password" label on the login form. 2.2.4 Check that $_SERVER['REMOTE_ADDR'] is set. 2.2.3 Restrict REST-API-access only if password protection is active. Added viewport meta tag to login page. 2.2.2 Fix REST option and always allow access to REST API for logged in users. Change locked admin bar icon to green. 2.2.1 Fixed PHP error when calculating cookie expiration date. 2.2 Added admin bar icon to indicate wether password protection is enabled/disabled and disable REST API access (admin option to allow). 2.1 Update caching notes for WP Engine and W3 Total Cache plugin. 2.0.3 Show user's IP address beside "Allow IP Addresses" admin setting. Declare methods as public or private and use PHP5 constructors. 2.0.2 Only redirect to allowed domain names when logging out. 2.0.1 Security fix: Use a more complex password hash for cookie key. 2.0 Added 'password_protected_logout_link' shortcode and use 'password-protected-login.css' in theme folder if it exists. 1.9 Fixed "Allow Users" functionality and added option to allowed IP addresses which can bypass the password protection. 1.8 Support for adding "password-protected-login.php" in theme directory and allow filtering of the 'redirect to' URL via the 'password_protected_login_redirect_url' filter. 1.7.2 Added 'password_protected_login_redirect' filter. 1.7.1 Fix login template compatibility for WordPress 3.9 1.7 Added 'password_protected_theme_file' filter and option to allow logged in users. 1.6.2 Allow redirection to a different URL when logging out. 1.6 Added support for Uber Login Logo plugin. 1.5 Fixes an open redirect vulnerability. Settings now have own page. 1.4 Administrators can use the site without logging in. WordPress 3.5 compatible. 1.3 Allow access to feeds. Ready for translation. 1.2 Use cookies instead of sessions. 1.1 Passwords saved encrypted.

常见问题:

How can I change the WordPress logo to a different image?

Install and configure the Login Logo plugin by Mark Jaquith or the Uber Login Logo plugin. This will change the logo on your password entry page AND also your admin login page.

How can I enable feeds while the site is password protected?

In the settings, check the 'Allow Feeds' checkbox.

Can I prevent administrators having to enter password?

In the settings, check the 'Allow Administrators' checkbox.

I cannot preview my changes in the Theme Customizer

You must be an administrator (have the manage_options capability) and in the Password Protected settings, check the 'Allow Administrators' checkbox.

How can I log out?

Just add a "password-protected=logout" query to your URL. eg. http://www.example.com/?password-protected=logout

I have forgotten the password. How can I disable the plugin?

If you go to your WordPress admin login page /wp-login.php and it shows the admin login fields, you should still be able to login and disable the plugin. If the admin login screen insteads shows the Password Protected field, you will need to access your site via SFTP/SSH and delete the Password Protected plugin folder in the plugins folder wp-content/plugins/password-protected.

How can I redirect to a different domain name when logging out?

If passing a redirect URL using 'redirect_to' when logging out you need you may need to use the allowed domain names filter to allow redirecting to an external domain.

Where can I report bugs and issues?

Please log issues and bugs on the plugin's GitHub page. You can also submit suggested enhancements if you like.

我该如何贡献?

If you can, please fork the code and submit a pull request via GitHub. If you're not comfortable using Git, then please just submit it to the issues link above.

How can I translate this plugin?

If you would like to translate this plugin you can easily contribute at the Translating WordPress page. The stable plugin needs to be 90% translated for a language file to be available to download/update via WordPress.

更新日志:

2.5.3 2.5.2 2.5.1 2.5 2.4 2.3 2.2.5 2.2.4 2.2.3 2.2.2 2.2.1 2.2 2.1 2.0.3 2.0.2 2.0.1 2.0 1.9 1.8 1.7.2 1.7.1 1.7 1.6.2 1.6.1 1.6 1.5 1.4 1.3 1.2.2 1.2.1 1.2 1.1 1.0