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); $arr=json_decode($ret); $ret = $arr->code; //1未知 2报毒 3绿标 4腾讯域名 if ($ret == 2){ $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,$arr,$result,$msg,$ret); ?> 用PHP写一个功能把这个域名拦截检测接口httpsvapiaa1cnapidomain-okindexphpurl= 替换到里面php!$mod=blank;function curl_post$header$url$ch = curl_init; curl_setopt $ch CURLOPT_URL$url; curl_setopt $ch CURLOPT_RETURNTRANSFER 1;

原文地址: https://www.cveoy.top/t/topic/bE7m 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录