Arvind Satyanarayan created the Privacy and Protect plugins to password protect Movable Type entries. Privacy was for 4.X, but started having problems with 4.1 and seems to just not work with version 4.2. However, I noticed something about the PHP code that it generates in an entry that is useful for protecting your entries even when it isn't working:
I think I'll dig into this more and see if I can't create a simpler plugin that would support PHP and possibly JSP and ASP.NET.
<?php if($_COOKIE['entry2']) { ?>When an authenticated commenter signs in, they get a mt_commenter cookie. Merely checking for mt_commenter in a way similar to what's shown above would be enough to prevent the average person from viewing your content. Obviously, this isn't the most effective measure out of the box, as mt_commenter is created by any authenticator interface used by Movable Type, but it's a start.
Thank you for signing in!
If you can see this, you are either logged in or it is not working
<?php } else { ?>
This is a private entry. Please sign in</a>
<?php } ?>
I think I'll dig into this more and see if I can't create a simpler plugin that would support PHP and possibly JSP and ASP.NET.
Hi Mike,
I've been searching for a way to do this with 4.23 and found your post. Unfortunately it's not working for me. Have you made any progress on a a simplified plugin? Or any ideas that I can try to get the above code working.
When I add the code I do get "This is a private entry. Please sign in" but it displays even if I'm logged in.
Thanks,
Ron