Quantcast
Channel: Using .htaccess to restrict access
Viewing all articles
Browse latest Browse all 125

Using .htaccess to restrict access

$
0
0

@Tronic wrote:

Hello! I can't get password-verification to working properly. For some reason the "password verification-box" appears over and over again, even the login-name and password is correct. My host is hostGator.

My .htaccess -file is in piwik's folder and .htpasswd -file is where it's supposed to be.


# This file's path:
# /home/user/public_html/piwik/.htaccess

# Restrict outside access
AuthUserFile /home/user/.htpasswds/public_html/piwik/.htpasswd
AuthGroupFile /dev/null
AuthName "Piwik"
AuthType Basic

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

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


# Error 500 when enabled;
#php_flag session.auto_start off

# Error 500 when enabled;
#Options -All

Read full topic


Viewing all articles
Browse latest Browse all 125

Trending Articles