Last post Feb 13, 2013 03:34 AM by oned_gk
Feb 13, 2013 03:11 AM|nikhilgeo|LINK
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
Feb 13, 2013 03:34 AM|oned_gk|LINK
Maybe when download clicked then copy the file to temp folder with deferent file name and redirect to the new file.
Use session end or app end to cleanup the temp folder.