hoangweb
4/1/2018 - 4:15 AM

piwik

# Sample .htaccess file for your web document root

# Restrict outside access
AuthUserFile /absolute_path_to_a_secure_folder/.htpasswd
AuthGroupFile /dev/null
AuthName "Piwik"
AuthType Basic

<Files "*">
    Require valid-user
</Files>

<Files "*">
    Order deny, allow
    Deny from all
    Allow from 128.252.135.
    Allow from .mydomain.com
    Allow from host.mydomain.com
</Files>

<Files ~ "^piwik\.(js|php)|robots\.txt$">
    Allow from all
    Satisfy any
</Files>

# Disable session auto-start; incompatible with Zend_Session.
php_flag session.auto_start off

# Disable directory viewing.
Options -All