Password Protecting Directories
Did you find this generator useful?
Please take a moment to fill out our
site survey
AuthType Basic AuthUserFile .htpasswd AuthName "Enter username and password" require valid-user
Click CTRL+C to copy,and CTRL+V to paste.
Copy and paste the above code into a text file and save it as htaccess.txt.
Upload the file using ASCII mode into the directory you want to protect, and rename it
.htaccess
(with the dot!).
The file will then 'disappear' in most ftp clients. Don't worry, it's still there!
go back and enter username:go back and enter password
Click CTRL+C to copy,and CTRL+V to paste.
Copy and paste the above code into a text file and save it as htpasswd.txt.
Upload the file using ASCII mode into the directory you stated in the path, and rename it
.htpasswd
(with the dot!).
The file will then 'disappear' in most ftp clients.