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?
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