Re: Securing XML files



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/
===================================
"Chris" <nospam@xxxxxxxxxx> wrote in message news:%23j7svb$QHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
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?


.



Relevant Pages

  • Re: archival of newsfeeds?
    ... But the problem when I use xml files is that if I want to modifiy them, ... use the XPathDocument wich allows you to use XPath on ... If there is no need to modify anything, ... >> How fast is XPath? ...
    (microsoft.public.dotnet.xml)
  • Re: another XSLT problem
    ... Wow, that fixes the problem, and it's elegant to boot! ... Here's the way I had to modify it for my actual XML files: ...
    (comp.text.xml)
  • Re: How to add a new field to the New Task form?
    ... I need to customize this form, but having hardtime getting any clue ... which xml files to modify and which section to change. ...
    (microsoft.public.sharepoint.portalserver.development)
  • APP or Mime filter or ... ?
    ... I want to modify some XML files before IE renders them using the default of ... specified stylesheet. ... Only a few XML files need to ne modified based on ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)