Securing XML files

C

Chris

I want to have a folder with XML files that I don't want to be publically
accessible but I want my application to be able to read. My initial thoughts
are to stick the files outside the web tree but IIS 6 doesn't allow allow
parent path with server mappath. I don't want to enable it but I don't want
semi-hardcoded paths either. Does anyone have any suggestions?
 
J

Juan T. Llibre

Place them in the App_Data directory.
If you don't have one, create it and modify your path to the files accordingly.

Direct requests for your XML files will be refused if they're in that directory,
although they will still be accessible by your application.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
B

bruce barker

put them in the app_data folder. it was designed for this.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top