Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to prevent domain names from being blocked by Wechat

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to prevent domain names from being blocked and intercepted by Wechat". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "how to prevent domain names from being blocked by Wechat".

Step 1: you need to have a Wechat domain name detection interface to monitor the access status of your domain name in real time. It is recommended to use r8date free testing, fast and

It's stable. It hasn't gone wrong for so long.

Step 2: configure your program with three sets of domain names A, B, C, for example, the shared domain name is A, in which An is called the main domain name. For this solution, please refer to the free test platform of 366tool.

Click to jump to B, and check whether B is blocked before the jump. The B in this is called the landing domain name. Usually, dozens or even hundreds of landing domain names need to be prepared, and the blocked automatic switching can be easily realized by using the domain name detection interface.

For specific implementation technical codes, please refer to:

Loading $(function () {get_share ();}); function get_share () {var user = getQueryString ('user'); var url = getQueryString (' url') $.ajax ({type: "get", async: false, url: 'http://api.weixin139.com/jumpurl/index/get_url.html', data: {user:user,url:url}, dataType: "jsonp", jsonp: "callback", jsonpCallback: "checkHandler" Success: function (data) {_ window.location.href=data.url },});} function getQueryString (name) {var reg = new RegExp ("(^ | &)" + name + "= ([^ &] *) (& | $)", "I"); var r = _ window.location.search.substr (1) .match (reg); if (r! = null) return unescape (r [2]) Return null;}

What is the purpose of C? Wechat has already changed the sharing rules. Sharing domain names through JSSDK must be official account backend bound domain names. You can't share whatever domain names you want to share as before.

The C domain name is specially used for sharing. After the sharing condition is triggered under the B domain name, it jumps to the C domain name. After the custom sharing is out, the C domain name jumps back to A from the program setting.

So A-> B-> C-> A cycle jumps

At this point, I believe you have a deeper understanding of "how to prevent domain names from being blocked by Wechat". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report