Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Prevent access to doc,xls,txt files in my IIS Application Root through URL

$
0
0

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

Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>