Hey,
i've got a website with an CMS (content managing system). For security i want some level of access control for the CMS directory. U've used an file with an 401 header to popup an login screen. The given name ans passwd are check with the name and passwd in my database. All works fine. You enter corrupt data and you won't get in.
But now it's possible to access a file directly from an url. So you bypass the 401 header. That should not be possible.
An .htaccesss would solve this problem, but i want to check the username and passwd with the data in my database and to read the username. I can read the username with $REMOTE_USER but then i have to update the htpasswd files each time someone gain's access to my CMS.
So, is it possible ( and how) to let my .htaccess file check the username and passwd in my database and to read the username ?? (i don't need the given passwd later)