making a password protected directory

last modified: 05:21 PM MDT, Mon 21 Aug 2006

You will need to submit your completed assignments to the instructor within a password protected directory. Here is mine: use login/password metrprof/tooeasy to access files in my secret directory.

This directory secret is contained within the htmlex.tar, which was offered for download in the first part of the tutorial. See the file readme within that directory.

There are a bunch of tutorials out there: try google with .htaccess password protected directory.

Here is one that has some appropriate advice for SoM (exceptions will be listed following):

Exceptions:

  1. Instead of naming the password file htpasswd, name it .htpasswd and keep it within the secret directory.

  2. To allow all users listed in the password file to have access, use a line require valid-user. That keeps things rather simple for now.
The use of valid-user is explained in section 11 of this document from vortexmind:

If your are doing this for credit, please send bfiedler@ou.edu the URL and password for your password protected directory after you have it working. The User Name for Dr. Fiedler should be metrprof. As you complete your tasks, or if you need help with partially completed tasks, I can check your work with your privacy maintained.