WordPress.org

Plugin Directory

Password Protected

A very simple way to quickly password protect your WordPress site with a single password.

Unreleased

2.0.3

  • Declare methods as public or private and use PHP5 constructors.
  • Show user's IP address beside "Allow IP Addresses" admin setting.
  • Add CHANGELOG.md and README.md

2.0.2

  • Check allowed IP addresses are valid when saving.
  • Only redirect to allowed domain names when logging out.

2.0.1

  • Split logout functionality into separate function.
  • Security fix: Use a more complex password hash for cookie key. Props Marcin Bury, Securitum.

2.0

  • Added password_protected_logout_link shortcode.
  • Load 'password-protected-login.css' in theme folder if it exists.
  • Added password_protected_stylesheet_file filter to specify alternate stylesheet location.
  • Added is_user_logged_in(), login_url(), logout_url() and logout_link() methods.
  • Added Basque, Czech, Greek, Lithuanian and Norwegian translations.
  • Better handling of login/out redirects when protection is not active on home page.

1.9

  • Fixed "Allow Users" functionality with is_user_logged_in(). Props PatRaven.
  • Added option for allowed IP addresses which can bypass the password protection.
  • Added 'password_protected_is_active' filter.

1.8

  • Support for adding "password-protected-login.php" in theme directory.
  • Allow filtering of the 'redirect to' URL via the 'password_protected_login_redirect_url' filter.
  • Added 'password_protected_login_messages' action to output errors and messages in template.
  • Updated translations.
  • Use current_time( 'timestamp' ) instead of time() to take into account site timezone.
  • Check login earlier in the template_redirect action.

1.7.2

  • Fix always allow access to robots.txt.
  • Added 'password_protected_login_redirect' filter.
  • Updated translations.

1.7.1

  • Fix login template compatibility for WordPress 3.9

1.7

  • Remove JavaScript that disables admin RSS checkbox.
  • Added 'password_protected_theme_file' filter to allow custom login templates.
  • It's now really easy to contribute to the translation of this plugin via our Transifex page.
  • Add option to allow logged in users.

1.6.2

  • Set login page not to index if privacy setting is on.
  • Allow redirection to a different URL when logging out using 'redirect_to' query and full URL.

1.6.1

  • Language updates by wp-translations.org (Arabic, Dutch, French, Persian, Russian).

1.6

  • Robots.txt is now always accessible.
  • Added support for Uber Login Logo plugin.

1.5

  • Added note about WP Engine compatibility to readme.txt
  • Requires WordPress 3.1+
  • Settings now have their own page.
  • Fixed an open redirect vulnerability. Props Chris Campbell.

1.4

  • Add option to allow administrators to use the site without logging in.
  • Use DONOTCACHEPAGE to try to prevent some caching issues.
  • Added a contextual help tab for WordPress 3.3+.
  • Updated login screen styling for WordPress 3.5 compatibility.
  • Options are now on the 'Reading' settings page in WordPress 3.5

1.3

  • Added checkbox to allow access to feeds when protection is enabled.
  • Prepare for WordPress 3.5 Settings API changes.
  • Added 'password_protected_before_login_form' and 'password_protected_after_login_form' actions.
  • Added 'password_protected_process_login' filter to make it possible to extend login functionality.
  • Now possible to use 'pre_update_option_password_protected_password' filter to use password before it is encrypted and saved.
  • Ready for translations.

1.2.2

  • Show login error messages.
  • Escape 'redirect_to' attribute. Props A. Alagha.

1.2.1

  • Added a "How to log out?" FAQ.
  • Only disable feeds when protection is active.

1.2

  • Use cookies instead of sessions.

1.1

  • Encrypt passwords in database.

1.0

  • First Release. If you spot any bugs or issues please log them here.

Requires: 3.5 or higher
Compatible up to: 4.4.4
Last Updated: 4 months ago
Active Installs: 100,000+

Ratings

4.5 out of 5 stars

Support

0 of 3 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0 100,1,1
100,1,1
60,5,3 50,2,1
100,2,2 100,1,1
100,1,1 100,4,4
67,3,2
40,5,2 100,1,1
100,2,2 100,5,5
100,1,1 100,1,1
100,2,2
100,1,1 100,1,1
100,1,1 50,2,1
0,1,0
0,1,0
100,2,2
100,1,1
100,1,1
100,2,2
50,2,1
0,1,0
50,2,1
100,3,3
75,4,3
100,1,1 100,1,1
50,2,1
33,3,1