I´m trying to do a second protection (I Think, please tell me), to an eventual lost of .htaccess.
I´m trying to do this to (learn) protect to an eventual "atack" that remove the file .htaccess and then the PHP page´s of my website have protection too. They make autenthication using the password files that .htaccess use to validate a user.I think it was two protections....
But i don´t know how to open the password files to compare passwords written by the user (using $PHP_AUTH_USER && $PHP_AUTH_PASS) and that inside .htpassword
that i create using passwd -s (SHA).
Sorry if i don´t explain myself clear again, please make me questions, if you dont understand what i want or if i´m doing big mistakes.....(it´s natural that).
Thanks in advance the colaboration....
Regards P.S.