Securing XML files

Discussion in 'Microsoft ASP .NET' started by Chris, Jan 29, 2007.

  1. Chris

    Chris Guest

    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?
     
    Chris, Jan 29, 2007
    #1
    1. Advertisements

  2. 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" <> wrote in message news:%23j7svb$...
    >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?
     
    Juan T. Llibre, Jan 29, 2007
    #2
    1. Advertisements

  3. Chris

    bruce barker Guest

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

    -- bruce (sqlwork.com)

    Chris wrote:
    > 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?
    >
    >
     
    bruce barker, Jan 29, 2007
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NWx
    Replies:
    4
    Views:
    208
  2. Johan Pingree

    Securing XML documents on a ASP.net site....

    Johan Pingree, Apr 26, 2004, in forum: Microsoft ASP .NET
    Replies:
    10
    Views:
    407
  3. TK
    Replies:
    1
    Views:
    375
    Hans Kesting
    Jun 24, 2004
  4. JAG

    securing PDF files (among others)

    JAG, Feb 2, 2007, in forum: Microsoft ASP .NET
    Replies:
    0
    Views:
    161
  5. Andy B
    Replies:
    0
    Views:
    158
    Andy B
    Aug 7, 2008
Loading...

Share This Page