restricting access to awstats

2 posts / 0 new
Last post
#1 Wed, 11/07/2007 - 04:10
tinusnijmeijers

restricting access to awstats

hi all,

what is the "normal" way to restrict access to awstats?

is there an easier way than copying a .htacces to the cgi-bin directory?

gr. tinus

Sun, 06/07/2009 - 07:16
tinusnijmeijers

well tinus,
the easiest way seems to be adding this:

<Files "awstats.pl">
AuthUserFile ${HOME}/.stats-htpasswd
AuthName "Restricted Area"
AuthType Basic
require valid-user
</Files>

to your server template in the apache section.
I think that as long as you (also) have webalizer active that the .stats-htpasswd is created and updated.

Topic locked