Get unique, static id from a device via web request

前端 未结 4 1032
北荒
北荒 2020-12-15 00:06

I have an MVC application that I would like to add some custom stats to. For some of the stats, it would be nice to have a unique identifier for a device.

For examp

4条回答
  •  感动是毒
    2020-12-15 00:39

    other than the IP

    If your site doesn't require any sort of authentication in order to serve this content, the IP address is the only thing you could get to identify clients, and even this might not be unique, for example you could have two clients behind the same proxy => no way of distinguishing those requests in this case. Another possibility is to use cookies, but that sort of falls in the first category => authentication.

提交回复
热议问题