Restricting access to www directories

It is possible to restrict access to directories accessible via the www.

Reasons why you shouldn't bother:


Ok, so how can I restrict access to certain directories?


But I want to password protect my files!

You have been warned...

How it works: When somebody using Netscape tries to access your www directory, the server looks for a file called .htaccess in that directory. If it doesn't find it, then it looks for the file index.html and sends it over the Internet. If it does find it, this file will determine how access is provided to the files in this directory. It will then check for a password file specified in the .htaccess file and verify the username and password from that.

The password file you create is NOT the same as the FIU unix password file

The following example presumes you want to protect your www directory, though it can be done to any directory below www too.

maintained by wsg_support