Total Pageviews

Monday, October 4, 2010

password protection

Step1- Create .htaccess file in your document root.

.htaccess file

AuthUserFile /home/username/public_html/.htpasswd
AuthName "Enter Password"
AuthType Basic
require user username(give ur username)

# htpasswd -c .htpasswd username
password : Enter the password



In the httpd.conf file

in the main directory give
AllowOverride All

No comments:

Post a Comment