$name="loZH2Ni1Q9tXY"; $l=crypt($PHP_AUTH_USER,lo); if($l != $name ){ Header('WWW-Authenticate: Basic realm="Login failed"'); Header('HTTP/1.0 401 Unauthorized'); exit; }