Grow your CSS skills. Land your dream job.

How do I password protect my entire WordPress Site?

  • # April 25, 2010 at 5:28 pm

    Hi guys,

    I was reading online and looking through the plug-ins on WordPress but I’m a little lost. I have a personal blog site that I would like password protected. I would give out the password to my family and friends but I’m not sure which plug-in or what to use?

    Thanks for your help in advance!
    Nick

    # April 26, 2010 at 11:13 am

    You could add your friends as Users with their own username and password.

    Then check out the is_user_logged_in conditional tag — http://codex.wordpress.org/Function_Reference/is_user_logged_in — and modify your theme so that the loop only runs/ the page only shows content if that conditional returns true.

    I haven’t had much to do with the built-in Private Posts wordpress thing, but on a post-by-post basis you could set each post you publish to Visibilty: Private. Again, I haven’t played with this functionality but it would mean no plugins or theme modifications required.

    # April 26, 2010 at 11:44 am

    If it’s the entire site, why don’t you use a little .htaccess action? It’s not as pretty as a plugin, but certainly hassle free to set up

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".