Page 1 of 1

Need help with directory control

Posted: Sun Nov 21, 2010 10:40 pm
by SGC
I would like to provide access to an htaccess/htpasswd write/read/browse protected directory AND an SQL (mysql) database WITHOUT the htaccess popup. Obviously, I can do this with an htpaccess prompt and re-use/generate credentials to gain access to the database, but I would prefer the other way around so I can embed the login.

Alternatively, a secure method (non htaccess) of preventing URL hacks for ALL sub-directory files would work.

PLEASE NOTE: I'm not looking to protect the pages in the directory (this is easy enough) I'm looking to protect EVERYTHING (specifically, against URL hacks) in the directory.


A pointer to the general direction of a solution/idea-for-a-solution would be greatly appreciated. (Pseudo) code would be great too.