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....
1:How to construct HttpPostedFileBase?
2: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
@tvanfosson said it right. Standard Web Forms authentication is still valid as long as you remove the directory from your Routes..
for the reason this in MVC by default the setting
routes.RouteExistingFilesis set to false so you must just drop web.config in the root folder this will deny access to all users.
<configuration> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> .....