Henrik Elkjær Hagen - 265 - May 27, 2014

How do I disable all the /views/* url’s in my web app?
Url’s like this:

When accessing my app with the views/ url I kind of bypass the login. So users can see the layout of my page without logging in.

ok should be resolved with this commit:

You can achieve the same behavior with:

Plugins.Add(new RazorFormat {
    Deny = { path => path.StartsWithIgnoreCase("/views") }