I have a directory that is named admin.
There is no physical path to this directory, as it is hard-coded as prefix for my administration area.
How can I protect this path with standard-authentification?
I want that only user Admin can login to that area.
But the main page needs to be available for every user.
If you are using any of the built in authentication variants:
Edit
To limit to a specific user:
Edit2
Yes you can, but it’s kind of a hack. Create your own class and derive it from
RouteBase.Then add it in your global.asax.