Blogger Information
Blog 32
fans 1
comment 0
visits 50898
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
微信域名检测接口的机制原理以及实现方式
大西瓜的博客
Original
1358 people have browsed it

经常遇到一些公司做活动因为一个 h5 页面被分享多次遭到微信拦截,导致所有的分享都白做了。

所以就有一个想法,能不能实时监测这个 h5 的 URL 一单发现被拦截 就立马更换 域名或 url 

在网上看到好多借口,但是都是付费 api 

于是自己研究了一下,发现一个微信的官方检测借口。

有不懂技术的朋友可以前往 godtest域名检测  


 

 http://qbview.url.cn/getResourceInfo?appid=31&url=http://www.wangzhesha.com

参数 appid= 31 默认的

url 需要检查的url

如果被检查的 URL 没有被拦截,则会直接跳转到目标 url 上,如果被拦截了,则给出拦截提示,只要解析返回信息,就能知道检查的 url 是否被拦截了。

具体代码就不给了,太简单了。

 

目前微信使用改接口校验是否被屏蔽 

https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?main_type=2&evil_type=20&source=2&url=https%3A%2F%2Fcandy.one



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!