PHP implements random acquisition of domain names that are not blocked by WeChat

墨辰丷
Release: 2023-03-27 20:14:01
Original
1579 people have browsed it

This article mainly introduces PHP to randomly obtain domain names that are not blocked by WeChat (WeChat domain name detection). It is very good and has reference value. Friends in need can refer to it.

Please go to www for username and KEY .weixin139.com Get

<?php
$url = "https://api.weixin139.com/weixin/domain/auto_check_list?user=xxx&key=xxx&type=1";
$con = get_msg($url);
$data = json_decode($con,true);
$count = count($data)-1;
$rand = rand(0,$count);
echo $data[$rand][&#39;domain&#39;];
function get_msg($url){
 $ch = curl_init();
 curl_setopt($ch,CURLOPT_TIMEOUT,1);
 curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch,CURLOPT_URL,$url);
 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
 curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
 $data = curl_exec($ch);
 if($data){
  curl_close($ch);
  return $data;
 }else {
  $error = curl_errno($ch);
  curl_close($ch);
  return false;
 }
}
Copy after login

The above is the entire content of this article, I hope it will be helpful to everyone's study.


Related recommendations:

How to use regular expressionsShield Selected keywords

JavaScriptShieldingImplementation code of Backspace key

How to operate the parent page of an iframe subpageShieldingPage pop-up layer effect

The above is the detailed content of PHP implements random acquisition of domain names that are not blocked by WeChat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!