About HTTP Basic permission authentication
Recently in the company's operating support platform, the system is Java, interface connection to do authentication, based on HTTP basic permission authentication.
To enter the user name and password, I Baidu the next, did not find this information, please ask, PHP How to do basic permission certificate Ah ...
------to solve the idea----------------------
The manual has:
Example 34-1. Basic HTTP Authentication Example
if (!isset ($_server[' Php_auth_user ')) {
Header (' Www-authenticate:basic realm= ' My realm ');
Header (' http/1.0 401 Unauthorized ');
Echo ' Text to send if user hits Cancel button ';
Exit
} else {
echo "Hello {$_server[' Php_auth_user '}.
";
echo "You entered {$_server[' PHP_AUTH_PW '}} as your password.
";
}
?>
------to solve the idea----------------------
It is estimated that restricting access to the path you want to access on the server can fulfill your requirements