I have a WebSite and I woud like Deny Directory Browser from a web.config file.
Here the code I'm using placed in the ROOT. Does not work. I'm testing it Locally so with URL LIKE http://localhost:3214/ I can still browser the directory fro CMS.
- What I'm doing wrong?
- Should it work even on Local Machine?
Thanks for your support!
<configuration>
<location path="Cms">
<system.webServer>
<directoryBrowse enabled="false" />
</system.webServer>
</location>
</configuration>
Some resource:
http://www.expta.com/2008/03/configuring-virtual-directories-with.html
See Question&Answers more detail:os