C3rd
Securing Web Folders
Posted: 27 Apr 2012, 2:23am - FridayCreate or Add this to .htaccess
AuthType Basic AuthName "Members Only" AuthUserFile /home/user/public_html/secretfolder/.htpasswd <limit GET PUT POST> require valid-user </limit>then execute the htpasswd command;
htpasswd -c /home/user/public_html/secretfolder/.htpasswd adminThat's it.. if you visit http://servername.com/~user/secretfolder/ -- it will prompt a username and password. So you have to enter admin as username and the password you entered. Enjoy~!