I found a website before. It can only be opened on the built-in browser of QQ mobile phone. This needs to be simple to implement, just judge ua
But I don’t understand the redirection principle of this website
Except for the built-in browser of mobile QQ, any other platform (PC QQ browser, etc.) will prompt a server error within seconds when opening it, and the website cannot be opened
I used a computer to simulate ua on my mobile phone's QQ browser to access it and saved its website source code, but I couldn't find where the js code for ua that it judged was, and after I opened the saved source code locally, it I don’t judge ua anymore (except for not judging ua, all other functions are normal). I am not good at learning and I really don’t understand. Please give me some answers~~
The author of the previous website has closed it down. I only have its source code. Can anyone help me check it out? There are red envelopes~~~
PHP中文网2017-06-28 09:24:27
Explain that the process of judging ua is performed in the server-side code.
typecho2017-06-28 09:24:27
Isn’t UA part of the http head? Back-end languages can be obtained and used to make judgments.
In fact, there is no need to execute the program to the language level. You can get it from http servers like apache and nginx to make a judgment.