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

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.