restricting access to log-file

N

Nikolaj

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
 
T

Tim Payne

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.
 

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

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,100
Members
48,773
Latest member
Kaybee

Latest Threads

Top