微信域名拦截检测,小程序拦截检测

这基本上就是公开的了,抓包你就可以看见中间你的域名访问都会先跳一下,最后才是真正到你的域名。小程序的检测其实也是同样的原理。这个是域名检测,你们可以试试

php 复制代码
/**
* 微信域名拦截检测
*/
 
// 页面编码
header("Content-type:application/json");
 
// 隐藏WARNING
error_reporting(E_ALL ^ E_WARNING);
 
// 获取headers
$checkUrl = get_headers('http://mp.weixinbridge.com/mp/wapredirect?url='.$_REQUEST['url']);
$headerStr = json_encode($checkUrl);
 
// 提取Location后面的
$Location_behind = substr($headerStr, strripos($headerStr, "Location"));
 
// 判断域名状态
if($Location_behind == 'false'){
     
    // 该域名无法正常访问
    $result = array(
        'code' => 201,
        'msg' => '该域名无法正常访问,暂时无法查询访问状态'
    );
}else if(strpos($Location_behind,'weixin110') !== false){
     
    // Location后面包含weixin110就是被封了
    // 域名被封
    $result = array(
        'code' => 202,
        'msg' => '域名被封'
    );
}else{
     
    // 域名被封
    $result = array(
        'code' => 200,
        'msg' => '域名正常'
    );
}
 
// 输出JSON
echo json_encode($result,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
相关推荐
00后程序员张9 小时前
python 抓包在实际项目中的合理位置,结合代理抓包、设备侧抓包与数据流分析
android·ios·小程序·https·uni-app·iphone·webview
2501_9159184117 小时前
使用 HBuilder 上架 iOS 应用时常见的问题与应对方式
android·ios·小程序·https·uni-app·iphone·webview
孙严Pay18 小时前
代付功能的跨界新玩法:不止于金融领域
笔记·科技·计算机网络·其他·微信
2501_9160074718 小时前
iOS 崩溃日志的分析方法,将崩溃日志与运行过程结合分析
android·ios·小程序·https·uni-app·iphone·webview
2501_9160074719 小时前
React Native 混淆在真项目中的方式,当 JS 和原生同时暴露
javascript·react native·react.js·ios·小程序·uni-app·iphone
00后程序员张19 小时前
苹果应用商店上架App流程,签名证书、IPA 校验、上传
android·ios·小程序·https·uni-app·iphone·webview
2501_9160074719 小时前
iOS 上架需要哪些准备,围绕证书、描述文件和上传方式等关键环节展开分析
android·ios·小程序·https·uni-app·iphone·webview
qq_124987075319 小时前
基于微信小程序的私房菜定制上门服务系统(源码+论文+部署+安装)
java·spring boot·微信小程序·小程序·毕业设计·毕设
2501_9151063220 小时前
iOS 上架费用解析,哪些成本可以通过流程优化降低。
android·ios·小程序·https·uni-app·iphone·webview
弓乙图20 小时前
弓乙图 先后天八卦的演化源头
经验分享·微信