restricting access to log-file

Discussion in 'ASP .Net Security' started by Nikolaj, Nov 3, 2004.

  1. Nikolaj

    Nikolaj Guest

    A short and hopefully simple question:
    I'm using log4net to log to a text file.
    The text file is located in the root of my webapplikation. How do I restrict
    access to this file?

    Thanks.
    Nikolaj
     
    Nikolaj, Nov 3, 2004
    #1
    1. Advertisements

  2. Nikolaj

    Tim Payne Guest

    I'd store it in a folder above the web root, and then if anyone needs to
    download the file, have your asp.net page stream the file to the browser
    rather than linking to it directly.

    HTH,

    Cheers,

    Tim.
     
    Tim Payne, Nov 5, 2004
    #2
    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. Andrew Banks

    Restricting access based on roles

    Andrew Banks, Feb 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    341
    Andrew Banks
    Feb 26, 2004
  2. Amratash
    Replies:
    0
    Views:
    739
    Amratash
    Apr 13, 2004
  3. =?Utf-8?B?SnVzdGlu?=

    Restricting access to certain pages

    =?Utf-8?B?SnVzdGlu?=, Oct 31, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    436
    Chris Austin
    Oct 31, 2004
  4. Graham Matthews

    restricting package access in loaded code

    Graham Matthews, Jan 16, 2004, in forum: Java
    Replies:
    2
    Views:
    401
  5. Replies:
    1
    Views:
    501
    Gordon Beaton
    Dec 21, 2004
  6. knightowl

    Restricting Class Access

    knightowl, Mar 6, 2005, in forum: Java
    Replies:
    3
    Views:
    416
    knightowl
    Mar 6, 2005
  7. unomystEz
    Replies:
    0
    Views:
    755
    unomystEz
    Nov 19, 2006
  8. John Allen

    Restricting file access in Ruby

    John Allen, Dec 28, 2004, in forum: Ruby
    Replies:
    3
    Views:
    134
    Zach Dennis
    Dec 30, 2004
Loading...