[ANSWERED] .htaccess in piwik root

(manfred.ruzicka) #1


I think it would be usefull to add a .htaccess to the piwik directory.

AuthUserFile /path/to/.htpasswd
AuthGroupFile /path/to/.htgroups
AuthName "PIWIK"
AuthType Basic
 <Files "*">
require group admins
<FilesMatch "^piwik.(js|php)$">
    Allow from all
    Satisfy any

With this .htaccess global access is only allowed for piwik.js and piwik.php

To access to any other file you need a password.

(vipsoft) #2

I’ve added this to the pinned topic: