ntunnel_mysql.php 中增加

function check() {
    
    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;
    }
    
    if(!($_SERVER['PHP_AUTH_USER'] == 'mysql' &&  $_SERVER['PHP_AUTH_PW'] == 'wenxue'))
    {
        exit;
    }
    
}

check();

 

Navicat http 通道增加验证

 

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-05-15
  • 2021-12-21
  • 2021-09-15
  • 2021-11-08
相关资源
相似解决方案