in reply to Re: Perl CGI - Viewing logfiles - Security Issues
in thread Perl CGI - Viewing logfiles - Security Issues
You exactly got the issue I have. Your approach will work fine but for one issue bcoz of my requirement.
I have a softlink to the user directories under /usr/local/apache/htdocs as follows:-
wd -> /usr/local/wd/
Then, I build the link using the 'soft link', 'username' & 'log file name' and present it in HTML format.
One of the requirement is that I show the log files as 'links' in the HTML page so that the user can click and view the file(s), if they want to. Hence, I coded like what I had explained in the original post.
Is there any way to still have the files as 'links' and also take care of the security issue?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl CGI - Viewing logfiles - Security Issues
by wfsp (Abbot) on Jan 10, 2007 at 18:02 UTC | |
by stumbler (Acolyte) on Jan 10, 2007 at 18:41 UTC | |
by Melly (Chaplain) on Jan 10, 2007 at 19:09 UTC |