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?


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

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

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.