javascript - In addition to judging UA, is there any other way to judge whether the request comes from mobile or PC?
ringa_lee
ringa_lee 2017-05-18 10:59:01
0
3
597

UA is too easy to be forged. I would like to ask if there are other methods that are not easy to forge to determine whether the request comes from PC or mobile

I temporarily want to (check) a way to judge whether it is triggered based on the window.ontouchstart method, but it seems to be easy to be faked?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
我想大声告诉你

Determine screen size?

漂亮男人

Just judge based on the UA. If the mobile terminal forges the UA of the PC, it means that the user wants to access the PC page

迷茫

If you have your own app, you can request your own client interface, or you can judge

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template