Hi all,
I'm in the planning stages for a fairly large project for the elementary school that I work at. I'm trying to figure out if there is an easy way to create password protected blogs without having to generate .htpaccess files in each directory by hand.
Each blog will need to be protected, so they will each have to have their own username/password combo. Does anyone have a script or system that could manage something like this?
Reported on Movable Type 4.2
Here is a tutorial that I wrote for basic password protection. You can adjust the PHP in there a little to add a username field if you need one.
Hi Mike,
Thanks for the link. I read through it previously but was under the impression that it's only to password protect individual entries. Is this not the case? I need the entire blog to be password protected.
The directions apply for all of the archive types.
If you need an entire blog password protected I would do that in Apache (or IIS) not in Movable Type. There are a few ways to do this, and site control panels like cPanel and Plesk make it easier. Do you have anything like that?
Hi Ken,
I'm running it off a local server but there isn't any cpanel or Plesk built into the system. I was planning on just doing it by hand via .htaccess for each blog if I couldn't find an alternative solution.
Basic Auth in Apache is probably your best bet. It does not rely on the blogging software, I think that is a Good Thing (tm) in this case.