Password Protected Wordpress blog
January 6th, 2010
A simple way to have a password protected wordpress.org blog. You may ask, if a blog is to be password protected, what is the need for it. Sometimes we may need a small office or company internal blog which may have confidential information of the company. Here you go
Add the following code to the beginning of the index.php file of the Theme you are using.
<?php
if (!is_user_logged_in()) {
auth_redirect();
}
?>
And thats it…





