PHP randomly obtains domain names not blocked by WeChat (WeChat domain name Detection), and php shields

Source: Internet
Author: User

PHP randomly retrieves unblocked Domain Names (Domain Name Detection), and php shields

Go to www.weixin139.com to obtain the user name and KEY.

<? 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] ['domain']; 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) {curl_close ($ ch); return $ data;} else {$ error = curl_errno ($ ch); curl_close ($ ch); return false ;}}

The above section describes how to randomly obtain unblocked Domain Names (Domain Name detection) in PHP. I hope it will help you. If you have any questions, please leave a message, the editor will reply to you in time!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.