I have some files mainly txt and pdf files in a folder in Application root. From my web application I write some data into these files and allow users to download it through a Download button in my web page. But someone who know the folder structure of my application can download it through the URL
(http://domainname/File/Error.txt)I want to prevent it, any ideas..? My Server is IIS 6.0 My Application ASP.NET(C#) 4.0