I don't know what the other guy is talking about, but it is possible to protect just files. I just did it, in fact. I'm new to this and am tryting to figure out how to protect multiple file in my CGI directory.
I may not know much, but if it works, it works. Here is a sample of the code I'm using in my .htaccess file in CGI directory:
<Files CGIPROGRAM.pl>
AuthUserFile /home/USER/DIR/.htpasswd
AuthName "WHATEVER"
AuthType Basic
require valid-user
</Files>
Hope that works for you! I also hope that people who don't know what theyr'e talking about wouldn't say some is "not possible".
-Philip
www.321green.com
To contact me, click here
I may not know much, but if it works, it works. Here is a sample of the code I'm using in my .htaccess file in CGI directory:
<Files CGIPROGRAM.pl>
AuthUserFile /home/USER/DIR/.htpasswd
AuthName "WHATEVER"
AuthType Basic
require valid-user
</Files>
Hope that works for you! I also hope that people who don't know what theyr'e talking about wouldn't say some is "not possible".
-Philip
www.321green.com
To contact me, click here