I have a folder in my public html folder which I would like to password
protect so that only certain people would be able to open this link.
How would I do this.......... my website is on a Unix hosting
account...........
www.mywebsite.com/privateFolder
You have had many replys that are useful. There is another method that
should work on any server. You can create an encrypted self-extracting
zip file of a file or whole directory containing many files. You then
upload this encrypted zip file to your server. When one goes to the
url, you are offered to download it. If you select to download it, you
then double click on the encrypted file. A screen comes up asking for
a password. If you give the proper password, and enter, the zip file
is automatically extracted to give the file or directory containing
several files that you protected. Since the protected zip file is an
application with extension .exe, that alone will scare many away who
do not know you. If they insist on downloading anyway they are very
unlikely to be able to open the file if you use a very long password
containing upper and lower case letters and numbers. That is easy
enough to produce with a random password generator.
For an example, go to
http://www.cwdjr.net/Aup/fan_dance.exe . The
password is althtml . Since this an .exe file, I suggest that anyone
who does not know me not try to open it since opening unknown
applications from groups can be a dangerous habit.