I have ASP.NET Web Forms project. I created a folder Demo
in this project and put in this folder HelloWorld.html
. I need deny access to this html (it's important not asp) page for all users. How can I do this?
I tried this way, but it didn't work (but it works perfectly with asp page).
<configuration>
<location path="Demo/HelloWorld.html">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…