Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am Developing a web application using ASP.NET 3.5. In application there is a folder containing some documents, which are saved by the Client. When we publish the website that folder containing document is visible at Published Folder. Is there is any way to hide that folder because folder contains some sensitive information.
Posted

1 solution

Yes, you should maintain the Document folder within the "App_Data" folder. This folder is a restricted folder and Asp.net runtime does not let user to access this folder via browser.

Besides, if you want to store your documents in some other folder (Not within the "App_Data" folder, you can restrict the folder access in IIS. See http://support.microsoft.com/kb/313075[^]

Another possible option is to store the uploaded documents into a folder that is outside of the web application's root folder. In that case, user will never be able to access that folder.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900