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. Advertising

  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. Advertising

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:
    275
    Andrew Banks
    Feb 26, 2004
  2. =?Utf-8?B?SnVzdGlu?=

    Restricting access to certain pages

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

    restricting package access in loaded code

    Graham Matthews, Jan 16, 2004, in forum: Java
    Replies:
    2
    Views:
    323
  4. Replies:
    1
    Views:
    435
    Gordon Beaton
    Dec 21, 2004
  5. John Allen

    Restricting file access in Ruby

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

Share This Page