微信域名拦截查询接口和调用方法,亲测

    技术2022-07-17  91

    接口功能

    检测查询域名是否被微信拦截,检测微信中域名状态

    接口地址

    http://7e4uid1l.wxcheck.ytqakqr.cn/7e4uid1l/wxcheck?url=www.baidu.com

    调用方法

    php版

    function wxcheck($domain){ $Interface = 'http://7e4uid1l.wxcheck.ytqakqr.cn/7e4uid1l/wxcheck?url='.$domain; $ret = file_get_contents($Interface, false, stream_context_create(array('http' => array('method' => 'GET','timeout' => 5)))); if(strpos($ret,'封') !== false){ return 0; //被封返回0 } else{ return 1; //正常返回1 } }

    数据返回格式

    返回数据格式:

    {“status”:1,“msg”:“域名正常”,“url”:“www.baidu.com”}

    状态码

    status:0 域名被封 status:1 域名正常

    注册域名时需要筛选域名在微信中是否被拦截,微信域名检测接口可以方便快速检测出

    Processed: 0.010, SQL: 9