Forum Moderators: phranque

Message Too Old, No Replies

Password protecting one file

         

Assgoblin

6:51 pm on Oct 28, 2005 (gmt 0)



Is there a way I can password protect one file securely? Either using PHP or some feature in control panel... There only needs to be one password, not necessarily a username and no group permissions. Just a password protected file. (No I don't want to put it in another directory)

g1smd

7:02 pm on Oct 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is very easy to password protect a folder, using .htaccess.

I would recommend using that.

physics

10:47 pm on Oct 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I agree. It might be a pain for you to put this file in another directory but not as much of a pain as it will be to try to write a custom password protection script.