<p>I have a blogengine.net install that requires privatization.</p>

<p>I'm doing research work at the moment, but I have to keep my blog/journal private until certain conditions are met.</p>

<p>How can I privatize my blogEngine.net install so that readers must log in to read my posts?</p>

[{'answer_id': 17392, 'author': 'lomaxx', 'author_id': 493, 'author_profile': 'https://Stackoverflow.com/users/493', 'pm_score': 0, 'selected': False, 'text': '<p>I would think it\'s possible to do this in the web config file by doing something like the following:</p>\n\n<pre><code>&lt;system.web&gt;\n    &lt;authorization&gt;\n      &lt;allow roles="Admin" /&gt;\n      &lt;deny users="*" /&gt;\n    &lt;/authorization&gt;\n&lt;/system.web&gt;\n</code></pre>\n'}, {'answer_id': 49324, 'author': 'CVertex', 'author_id': 209, 'author_profile': 'https://Stackoverflow.com/users/209', 'pm_score': 1, 'selected': False, 'text': "<p>lomaxx's answer didn't work, so I decided to avoid making blogengine.net perform auth for readers.</p>\n\n<p>on iis, i disabled anonymous access and added a guest users to the win2k3 user list.</p>\n"}, {'answer_id': 170926, 'author': 'Jason Kealey', 'author_id': 20893, 'author_profile': 'https://Stackoverflow.com/users/20893', 'pm_score': 1, 'selected': False, 'text': '<p>We created a simple tool that gives certain users access to certain posts according to their ASP.NET Membership Roles to acheive a somewhat similar result.</p>\n\n<p><a href="http://blog.lavablast.com/post/2008/08/BlogEnginenet-Post-Security.aspx" rel="nofollow noreferrer">http://blog.lavablast.com/post/2008/08/BlogEnginenet-Post-Security.aspx</a></p>\n'}, {'answer_id': 222016, 'author': 'Rafe', 'author_id': 27497, 'author_profile': 'https://Stackoverflow.com/users/27497', 'pm_score': 2, 'selected': True, 'text': '<p>I use this extension. Just save the file as RequireLogin.cs in your App_Code\\Extensions folder and make sure the extension is activated.</p>\n\n<pre><code>using System;\n\nusing System.Data;\n\nusing System.Configuration;\n\nusing System.Web;\n\nusing System.Web.Security;\n\nusing System.Web.UI;\n\nusing System.Web.UI.HtmlControls;\n\nusing System.Web.UI.WebControls;\n\nusing System.Web.UI.WebControls.WebParts;\n\nusing BlogEngine.Core;\n\nusing BlogEngine.Core.Web.Controls;\n\nusing System.Collections.Generic;\n\n\n\n/// &lt;summary&gt;\n\n/// Summary description for PostSecurity\n\n/// &lt;/summary&gt;\n\n[Extension("Checks to see if a user can see this blog post.",\n\n            "1.0", "&lt;a href=\\"http://www.lavablast.com\\"&gt;LavaBlast.com&lt;/a&gt;")]\n\npublic class RequireLogin\n{\n\n    static protected ExtensionSettings settings = null;\n\n\n\n    public RequireLogin()\n    {\n\n        Post.Serving += new EventHandler&lt;ServingEventArgs&gt;(Post_Serving);\n\n\n\n        ExtensionSettings s = new ExtensionSettings("RequireLogin");\n\n        // describe specific rules for entering parameters\n\n        s.Help = "Checks to see if the user has any of those roles before displaying the post. ";\n\n        s.Help += "You can associate a role with a specific category. ";\n\n        s.Help += "All posts having this category will require that the user have the role. ";\n\n        s.Help += "A parameter with only a role without a category will enable to filter all posts to this role. ";\n\n        ExtensionManager.ImportSettings(s);\n\n        settings = ExtensionManager.GetSettings("PostSecurity");\n\n    }\n\n\n\n    protected void Post_Serving(object sender, ServingEventArgs e)\n    {\n        MembershipUser user = Membership.GetUser();\n        if(HttpContext.Current.Request.RawUrl.Contains("syndication.axd"))\n        {\n            return;\n        }\n\n        if (user == null)\n        {\n            HttpContext.Current.Response.Redirect("~/Login.aspx");\n        }\n    }\n}\n</code></pre>\n'}, {'answer_id': 8842741, 'author': 'Bill H', 'author_id': 1146482, 'author_profile': 'https://Stackoverflow.com/users/1146482', 'pm_score': 2, 'selected': False, 'text': '<p>From: <a href="http://blogengine.codeplex.com/discussions/267878" rel="nofollow">BlogEngine.NET 2.5 - Private Blogs</a></p>\n\n<p>If you go into the control panel, Users tab, Roles sub-tab (right side), for "Anonymous" on the right-side Tools area, hover over that and select "Rights".</p>\n\n<p>You are now on the Rights page for the Anonymous role.  Uncheck everything, in particular "View Public Posts".  HOWEVER, you do need to keep at least one item checked, otherwise everything reverts back to the default.  For example, you could keep "View Ratings on Posts" checked.  Then Save.</p>\n\n<p>Then anyone who is not logged in should automatically be redirected to the Login page no matter where what page they try to enter the site at.</p>\n'}]
['https://Stackoverflow.com/questions/17387', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/209/']