如题,只需要检测就行,暂时不考虑跳转防封方面的,最好PHP环境下能用的。私聊重谢
找个被封的域名,用pc版本的微信打开,fiddler抓包下找到接口就行了。剩下的就是php模拟微信请求接口依据返回值判断是否被封禁了
参考:https://blog.csdn.net/qutifj834/article/details/81945783
我有实现的代码,你用的是什么语言开发的。发个PHP的给你看看,不懂的可以wx:xcxsf001 或者进我们官网 www.monkeyapi.com
$url = "http://api.monkeyapi.com";
$params = array(
'appkey' =>'appkey',//您申请的APPKEY
'url' =>'www.monkeyapi.com',//您需要检测的域名
);
$paramstring = http_build_query($params);
$content = monkeyCurl($url, $paramstring);
$result = json_decode($content, true);
if($result) {
var_dump($result);
}else {
//请求异常
}
/**
* 请求接口返回内容
* @param string $url [请求的URL地址]
* @param string $params [请求的参数]
* @param int $ipost [是否采用POST形式]
* @return string
*/
function monkeyCurl($url, $params = false, $ispost = 0)
{
$httpInfo = array();
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
if ($ispost) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_URL, $url);
}else {
if ($params) {
curl_setopt($ch, CURLOPT_URL, $url.'?'.$params);
} else {
curl_setopt($ch, CURLOPT_URL, $url);
}
}
$response = curl_exec($ch);
if ($response === FALSE) {
//echo "cURL Error: " . curl_error($ch);
return false;
}
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$httpInfo = array_merge($httpInfo, curl_getinfo($ch));
curl_close($ch);
return $response;
}
域名检测可以了解极强检测,我一直在用这家的,里面的监控功能很强大,而且每天都有免费的点数进行试用