Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 6
    GeoIP wouldn't really help. Even if you could determine that their IP belongs to a mobile network, they could be tethering the connection to a desktop computer. If it's not a mobile network you really no nothing all can devices connect through Wi-Fi. Also you have the problem of maintaining a global database of IP ranges. Using the user agent, even though it's not perfect, I would assume is much more reliable. It's not like it's really a security issue to serve the wrong browser content, so who cares? If someone's spoofing the UA, they likely already know what they're getting themselves into. Commented Nov 1, 2015 at 2:37
  • Right you were 11 years ago, user agents are getting useless, e.g. they do not report Safari and Firefox iPad as mobile anymore. Chrome still does, but it will follow the suit soon, I guess. Commented Feb 19, 2021 at 16:43