I have a directory in my website called /MyFiction. It is an installed version of Wordpress for a particular blog and I would like to keep it to where you can only get to it if you're authenticated. I'm an old hat to ASP.NET but with MVC I'm still a newbie....
How to construct HttpPostedFileBase?
How to resolve issue with image path when testing HtmlHelper?
Is a HTML helper a place for Business Logic?
Is this code business logic or presentation logic?
Sending collection of items in ASP.NET MVC
<location>element in your
web.configto restrict access to certain folders..
ASP.NET MVC forces an AJAX request be redirected to the login page when the FormsLogin session is no longer active
How to make a default editor template for enums?
@tvanfosson said it right.
Standard Web Forms authentication is still valid as long as you remove the directory from your Routes..
because in MVC by default the setting
routes.RouteExistingFilesis set to false so you can just drop web.config in the root folder that will deny access to all users.
<configuration> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> .....