How can I determine that the access from an external browser is opened from WeChat?

Source: Internet
Author: User
After opening the webpage, you can click "open in browser" in the upper right corner to open the webpage in an external browser. Is there any way to check whether the URL is taken from it. Note: I am not trying to determine whether to open this webpage in the middle. I can simply use UA...

After opening the webpage, you can click "open in browser" in the upper right corner to open the webpage in an external browser. Is there any way to check whether the URL is taken from it.

Note: I am not trying to determine whether to open this webpage in the middle. this is simply done by using UA. I want to judge whether the last access was in the open external browser, it cannot be based on the from parameter on the address, because someone else can forge

Reply content:

After opening the webpage, you can click "open in browser" in the upper right corner to open the webpage in an external browser. Is there any way to check whether the URL is taken from it.

Note: I am not trying to determine whether to open this webpage in the middle. this is simply done by using UA. I want to judge whether the last access was in the open external browser, it cannot be based on the from parameter on the address, because someone else can forge

If the original webpage url is added with parameters at the entrance, you only need to check whether there are any parameters to determine if they are in progress. Of course, if your link is in the circle of friends and the chat is clicked, related parameters will also be added by default, such as from = timeline, from = groupmessage from = singlemessage.

Another way is to determine whether the webpage is being opened based on the UA of the built-in browser.

Determine whether to enable or not:

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.