PDA

View Full Version : Protect scripts



<mark />
09-27-2004, 01:48 PM
I've installed AWStats, but I want to add some password protection or something to keep other people from looking at my stats. Anybody know how to do that?

Tom Howard
09-27-2004, 02:46 PM
Well, this is how I did it...

I used the "WebPassword" tool in the control panel to set a password for http://www.mydomain.com/cgi-bin/ I then logged in to my account (via SSH) and went into the cgi-bin directory and edited the .htaccess file that webpassword had created (ls -a to see the file). I added this as the first line:
&lt;files "awstats.pl">
and &lt;/files> to the last line, but kept the rest of the stuff there. There may be a more elegant way, this was just a quick hack on my part.