Monday, 8 July 2019

how to password protected in htaccess url in pacific country ?

.htaccess

File content:

AuthType Basic
AuthName "Restricted access"
AuthUserFile /home2/b4x4u4fu/public_html/.htpasswd
require valid-user
Order allow,deny
Allow from all
deny from 1.6.0.0/1

command line run : htpasswd -c .htpasswd [username]

No comments:

Post a Comment