用PHP写一个功能把原来管家检测的接口替换掉加一个域名拦截检测接口httpsvapiaa1cnapidomain-okindexphpurl= php!$mod=blank;function curl_post$header$url$ch = curl_init; curl_setopt $ch CURLOPT_URL$url; curl_setopt $ch CURLOPT_RETURNTRAN
把原来管家检测的接口替换掉,加一个域名拦截检测接口:
query("select * from `jiuai_host` where type=1"); foreach($hostrow as $key => $value){ $url = $value['domain']; $id = $value['id']; $header = array("Referer: https://guanjia.qq.com/online_server/result.html"); $ret = curl_post($header,'https://v.api.aa1.cn/api/domain-ok/index.php?url='.$url); if ($ret == '0') { $poison = 1; $myrow = $DB->get_row("delete from `jiuai_host` where Id='$id'"); $msg = $msg.'已拦截:'.$url.''; } else { $msg = $msg.'域名正常:'.$url.'
'; } } if ($poison == 1) { echo $msg; send_mail($mail['addressee'],'QQ微信免费接口池-监控日志',$msg); } else { $result = array('code'=>0,'msg'=>'green','result'=>10007); echo json_encode($result); } } else { $result = array('code'=>0,'msg'=>'no key','result'=>10008); echo json_encode($result); } $DB->close(); // 删除无用变量 unset($hostrow,$myrow,$result,$msg,$ret); ?>
原文地址: https://www.cveoy.top/t/topic/bE8d 著作权归作者所有。请勿转载和采集!