I have some static (pure html) pages in my MVC application that I need to authenticate, so that not just anybody can look at them. Is there an way to do this without moving all the code to asp files and adding a controller and from there use the Authorize attribute? I would really prefer to not need to do this!
Share
If those static HTML pages are in a separate folder, You could configure IIS & Windows Folder security using IIS Admin.
You might also want to look at role based security , however I’m not sure if that will work for static HTML files (non .aspx).