<?
if(!$PHP_AUTH_USER || !authenticate($HTTP_AUTH_USER, $HTTP_AUTH_PW) {
header('WWW-Authenticate: Basic realm="SOME_IDENTIFIER"');
header('HTTP/1.0 401 Unauthorized');
echo('You are not authorized to access this page.');
//any output here will be displayed after the maximum bad
//attempts for your browser (generally 3)
exit();
}
the rest of the code here for the page.
Is this secure enough to use to protect pages with customer information on it? No CC info or anything like that.
Michael


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks