Jump to content

.htaccess Only allow people to see a file if they are logged in.


bmdsherman

Recommended Posts

I think the best way would be to redirect those requests to a PHP script, which will then fetch the files if the user is logged in.  Apache can be configured to use a database for .htaccess, but I don't believe Apache has the ability to encrypt/decrypt the passwords (which I'm assuming you need).

 

If you don't need encryption, this might be the ticket here:

http://www.linuxhelp.net/guides/htaccessmysql/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.