To password protect a Linux/Apache folder, please perform the following steps: Create the subdirectory you wish to password protect. Confirm that the subdirectory you created is CHMOD 711 or 755. Create a file called .htaccess Add these lines into your .htaccess file: AuthType Basic AuthName "Password Required" AuthUserFile /home/subdirectory/.htpasswd require valid-user Note: Change the path for .htpasswd to the path of your home directory. If you do not know your path, you can run the phpinfo command from within an HTML document. FTP .htaccess to the subdirectory created in Step 1. Using your FTP client, CHMOD .htaccess to 644. Now create your .htpasswd file. To add users to this file, you can visit PowWeb's Password Encryptor . Now simply copy and paste the line of text containing the username and encrypted password to your .htpasswd file. FTP .htpasswd to the subdirectory created in Step 1. CH...
Technical Adventures in the World of IT