I have a web application project and I have put my source code in a folder called “source”. Now when I run the application I am able to see contents of “source” folder (it lists the code files) by appending the folder name to the url “/source” in IE.
How do I prevent this?
It sounds like you have directory browsing on….
Tell IIS not to allow directory browsing by unchecking it under the virtual directory tab for the application in IIS.