Regularly using WordPress as a tool for animation and working for my blog, the issue of private blog comes up regularly especially for tests on other URL via sub-domain for example. A simple and effective way to resolve this feature is to use the plug-in WP Private.
First you can download the plugin here . Its installation is basic it will not be discussed in this tutorial.
Then to configure the plugin you have to go into Settings ? Private WP.
1: Allows you to enable or disable the blocking of the blog.
2: You have several ways to make a private blog, 2 in fact. You can either redirect the visitor to the login page of your blog, if it there is no password for that you have 2 methods, one recommended (first option), if the first does not work use the second option.