Answer the question
In order to leave comments, you need to log in
How to check the password for its presence in the htpasswd file?
There is an htpasswd file for basic user authorization using Apache.
There is a username and password entered by the user.
It is necessary to check if there is a hash in this file that corresponds to this entered name and password.
You need to check this either using PHP. Or some third-party utility that can be run from php.
I tried to simply generate a hash based on the entered password to compare it with what is in the file, but the hash is always different.
Just enable the standard basic authorization, there is no way through .htaccess.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question