网站要求认证

Nat*_*sha 1 php authentication

当我访问网站网址时,我的网站要求进行身份验证.它说

"A username and password are being requested by http://test.com. The site says: "c100 Undetectable #18a: Restricted area" 
Run Code Online (Sandbox Code Playgroud)

当我点击取消按钮然后它将消失.每当我刷新页面或点击链接时它都会询问..我该怎么做才能删除这个?

小智 5

请在所有页面中检查此代码,并且此身份验证有一些标题,如下所示: -

if($_SERVER["PHP_AUTH_USER"]  && $_SERVER["PHP_AUTH_PW"]){

}        
header("WWW-Authenticate: Basic realm=);
header("HTTP/1.0 401 Unauthorized");
Run Code Online (Sandbox Code Playgroud)

请删除此问题,您的问题将得到解决.
要了解有关身份验证的更多信息,请参阅 -