Password-protecting your Wordpress blog

August 10, 2006

Before leaving on holiday, I asked what tutorials or things I could write about to help bloggers. One commented:

New to Wordpress… Wish I knew how to password protect my entire blog. Would love for people I only know to read my blog. Don’t know how to do this.

In this post I’ll explain five ways of password-protecting your Wordpress blog. None of them are foolproof (is anything?) and if you’re wanting some heavy-duty protection, you should look at putting your site on a secure connection (https).

  1. Password-protecting everything using an .htaccess file. If you’re not familiar with editing .htaccess files yourself, try checking with your site host’s control panel for password protection, e.g. CPanel, Plesk. You may need to regenerate your permalinks afterwards in Wordpress by going to Options > Permalinks > Update Permalink Structure.
  2. Password-protecting all posts/pages/feeds but not your images or stylesheet by installing the Registered only plugin: read the install instructions then download the plugin.
  3. Password-protecting by user-level. Install the Post Levels plugin: right-click and save this plugin and then follow the standard plugin installation instructions. This enables only members with a particular user level (or higher) to view the post.
  4. Password-protecting each post individually (1) - you can still see the design but not the content of an individual post unless you have a special password. Type into the “Password-Protect box” on the right hand sidebar when writing or editing a post in Wordpress. Give out this password to the people you want to view it.
  5. Password-protecting each post individually (2) - you can still see the design but not the content of an individual post unless you the post’s author. Change the Post Status to “Private”. When you re-save the post, be careful not to press the “Publish” button or it won’t be private anymore! Just press “Save” or “Save and Continue Editing”.
Comments
  1. Ahhh Rachel,

    I do enjoy reading up on your blog because you’ve got some great tips. Your helpful posts on how to get things done or how to do things are extremely useful especially to someone like me who is just making my first attempt at personalizing my WordPress.

    Thanks for this and I look forward to when you finally make a write-up on the break-down/steps of actually redsigning the default WordPress.

    Cheers,

    Donna, August 11, 2006

  2. Rachel

    My question concerns ‘Wordpress’ blog templates.

    Many of them are available but could there be a simpler way to upload them than going through the FTP and the rest process which might be too technical for many Blog Writers.

    Thank you

    Serge
    Biz:
    http://www.njconcierges.com
    Blog:
    http://www.sergetheconcierge.com

    Serge Lescouarnec, August 12, 2006

  3. [...] Posted by Michael on August 11, 2006 in Wordpress Rachel Cunliffe has a nice little write-up about how to password protect your Wordpress site. I would add this to her list: [...]

    How to Password Protect Your Wordpress Site : Small Business Blog Design and Consulting, August 12, 2006

  4. Wow, I was just trying to figure this out myself. Re method #5, I was under the impression that when a post is designated as Private only the post author, and not other members, will be able to see it when logged in?

    Nyomi, August 14, 2006

  5. Oops Nyomi - my mistake in explaining it - a private post is only viewable to the post’s author.

    Rachel, August 14, 2006

  6. I haven’t had trouble password protecting pages in WordPress, but I have found the post-level password protection to be buggy. I can password protects posts, but often they cannot be viewed after typing the password

    Bob Jordan, August 15, 2006

  7. [...] found from Password-protecting your Wordpress blog [...]

    [white + (black)board.] » Blog Archive », October 17, 2006