I have a MVC website, without authentication. In the website directory I have a folder \\ProjectNotes which contains a file inside, Notes.txt. Neither this folder nor the text f
You should use Web.Config
file for your case. Add to your root Web.Config
file into <system.webServer>
section:
<security>
<requestFiltering>
<hiddenSegments>
<add segment="ProjectNotes"/>
</hiddenSegments>
</requestFiltering>
</security>
Actually, your question has nothing with MVC, but with IIS restrictions (Or other web server restrictions but I assume you using IIS)