User Tools

Site Tools


website_security

Password protect a folder on a server

create .htaccess and .htpasswd in this folder

.htaccess

AuthType Basic  
AuthName "restricted area"  
AuthUserFile /thefolder/.htpasswd  
require valid-user

.htpasswd file

user:csmBH6tTLNZBE

generate the pair user:password here: http://css-tricks.com/easily-password-protect-a-website-or-subdirectory/

check out the css-tricks for more details

website_security.txt · Last modified: 2014/02/19 20:17 by zoza