• [Topic decapped – please do not “yell” here ]

    hello everyone, I am building my first WP site to be used as a family blog.
    I need it to be totally private and exclusive for its users only.

    I dont want to create a user/pass on the server bc then members have to login twice…a bit messy.

    Does anyone know a good plugin for password protecting an entire site with the username and password ?

    users login once and get straight to posting and comments.

    any advise is greatly appreciated !!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can make your website private using this plugin
    Private Only
    But, this is only for content readability.

    John

    (@thesun2012)

    You can custom hook init to protect it.

    function protectit(){
    if(!is_user_logged_in())
    header(‘location:’ . get_bloginfo(‘url’).’/wp-admin’);
    }
    add_action(‘init’,’protectit’);

    this code will check if you logged or not, if no, site will redirect to login page.

    Put this code on functions.php

    ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password protect an entire site with user name and password?’ is closed to new replies.