With the popularization of wechat domain name detection, more and more people pay attention to this aspect. One customer told me that the detection he is using now has a frequency limit and can only detect one in a second at most. When there is too much concurrency, it can't be detected while skipping. It can only be written into the planned task. In such a case, the detection effect is not obvious. Sometimes all domain names are one It can be seen that the reaction speed has a direct impact on the anti blocking effect behind you. This is the interface independently developed by individuals. It can only provide one second of service each time. It is OK for a small number of customers, but as long as the amount is large, such response speed is far from enough. The faster the speed is, the higher the requirements for the server are, because the faster the response speed is, the greater the load on the server is.
Our monkey data has a special wechat domain name detection, the fastest response speed can reach 2ms, and even can support unlimited frequency. Of course, this requires a higher server, and we use official protocol detection, and standby third-party protocol detection. Monkey data is based on the company, with a professional technical team, the fastest response speed can reach 2ms each time, unlimited domain name, unlimited frequency, unlimited concurrency, real-time detection results, and timely solve the problem.
Here is a section of wechat domain name detection api code for your reference:
$url = "http://api.monkeyapi.com"; $params = array( 'appkey' =>'appkey',//APPKEY you applied for 'url' =>'www.monkeyapi.com',//Websites to query ); $paramstring = http_build_query($params); $content = monkeyCurl($url, $paramstring); $result = json_decode($content, true); if($result) { var_dump($result); }else { //Request exception } /** * Request interface return content * @param string $url [Requested URL address] * @param string $params [Requested parameters] * @param int $ipost [POST or not] * @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; }
More questions about domain name detection can be found in + V:mkapi001,+Q1401806571.