Title: [Plugin: Password Protect WordPress] Not working
Last modified: August 20, 2016

---

# [Plugin: Password Protect WordPress] Not working

 *  [jwolske](https://wordpress.org/support/users/jwolske/)
 * (@jwolske)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/)
 * I set a password, but when I visit the site and enter the password, it just refreshes
   the page. Not sure why. Help?
 * [http://wordpress.org/extend/plugins/password-protect-wordpress-blog/](http://wordpress.org/extend/plugins/password-protect-wordpress-blog/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Anonymous User
 * (@anonymized-7628109)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841115)
 * same here
 *  Thread Starter [jwolske](https://wordpress.org/support/users/jwolske/)
 * (@jwolske)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841204)
 * Hi. Anybody else experiencing this issue besides jpaliotto and I?
 *  Anonymous User
 * (@anonymized-7628109)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841242)
 * Hey jwolske,
 * I guess it’s just us. I’ve ended up switching plugins. Now I”m using “Password
   Protected” by Ben Huson and “Login Logo” by Mark Jaquith. So far so good!
 *  Thread Starter [jwolske](https://wordpress.org/support/users/jwolske/)
 * (@jwolske)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841250)
 * Word. Thanks man. I just did the same. Working now.
 *  [fung1006](https://wordpress.org/support/users/fung1006/)
 * (@fung1006)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841277)
 * same here, doesn’t work
 *  [manuel75](https://wordpress.org/support/users/manuel75/)
 * (@manuel75)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841296)
 * I think I have found a more reliable and straightforward approach. Copy and paste
   this code inside your theme functions.php:
 *     ```
       function walled_garden() {
       if( ! is_user_logged_in() )
       wp_redirect( '/wp-login.php' );
       }
       add_action( 'get_header', 'walled_garden' );
       ```
   
 * I Got it from : [http://davidwalsh.name/wordpress-force-login](http://davidwalsh.name/wordpress-force-login)(
   see the comments).
    I think its far better to have a User Login approach to handle
   this, and avoid plugins that might, as it did happen to me, allow hack and malware
   contamination when it’s buggy.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Password Protect WordPress] Not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/password-protect-wordpress-blog.svg)
 * [Password Protect Wordpress](https://wordpress.org/plugins/password-protect-wordpress-blog/)
 * [Support Threads](https://wordpress.org/support/plugin/password-protect-wordpress-blog/)
 * [Active Topics](https://wordpress.org/support/plugin/password-protect-wordpress-blog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/password-protect-wordpress-blog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/password-protect-wordpress-blog/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [manuel75](https://wordpress.org/support/users/manuel75/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-password-protect-wordpress-not-working/#post-2841296)
 * Status: not resolved