Gossamer Forum
Home : General : Perl Programming :

Password protect individual files?

Quote Reply
Password protect individual files?
Is there a way to protect individual files and not the entire directory on a UNIX server? .htaccess protects the whole directory. Are there other methods of password protection?
Quote Reply
Re: Password protect individual files? In reply to
Not really. There are password scripts that you can install that will protect a file. However, if someone knows the file you are protecting, they can bypass these logon scripts and go directly to the file.

Go to cgi-resources.com and check out the Password Protection scripts.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Password protect individual files? In reply to
Yeah. I know you can do it with a CGI script.

So there's no way to password protect individual files using secure methods on the server side?
Quote Reply
Re: Password protect individual files? In reply to
Nope. .htaccess protects all files within a directory.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Password protect individual files? In reply to
You could put the file into the web non-accessable directory, and access the file from a cgi script.
This is what I do for my data files, I can read them from anywhere using a password protected cgi script.

Regards,

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net