Forum Moderators: phranque
When one logon with some tools (like file manager, cpanel, etc..) there is an authentication ID that is stored in your access log file, second or third field. If I want to create such accounts on the fly and wish to have those user IDs being stored in the access_log file, what's the best way and how? I want to have a small system where a user can decide of his userID/password and be sure that it is stored in access_log.
You can configure Apache to protect any resource with such a protection using a static password file (read more here [httpd.apache.org]), and if you like brute-force solutions, you can alter that password file from your script, but I'd not do that. Instead, there's a much nicer way than this, you can handle the http authentication yourself with PHP, see [php.net ].
One thing you have to keep in mind; the username and the password are sent in clear text always with each request while staying in this authentication realm, so it is the least secure way of protecting resources.