Password protect folders using htaccess. Users will need to enter their username and password to gain access to the folder.
Enter your username
Enter your password
Enter the full server path to where the htpasswd file will be stored. This is best if it can be stored 'outside' web-accessed areas, such as in a folder alongside your public_html file (or something similar). If this is not possible, then either another folder or the same folder. We just need the full path to where it is!
Enter the message you wish to have displayed on the windows box which pops up.
Copy the first piece of code and paste it into notepad and save it as htaccess.txt. Upload it in ASCII format to the folder you wish to protect and rename it to .htaccess (remember the dot!!)
Copy the second piece of code and paste it into notepad and save it as htpasswd.txt. Upload it in ASCII format to the folder you stated in the path (or the same folder as the .htaccess file) and rename it to .htpasswd (remember the dot!!)
Unless you have your ftp program set to show invisible files, the file will then disappear from sight. Don't worry, it's still there!
If you have an existing htaccess file, copy and paste the generated code into that.