简体   繁体   English

使用JQuery或Javascript获取设备ID

[英]Getting Device ID using JQuery or Javascript

Is there a way to get the device's unique id using JQuery/JavaScript. 有没有办法使用JQuery / JavaScript获取设备的唯一ID。

I know one can detect the user agent and type of device that is being used but that is not required. 我知道可以检测用户代理和正在使用但不需要的设备类型。 I need to know the unique id that is being used. 我需要知道正在使用的唯一ID。

Having said that I also know that browser is the least priviliged application running on the machine and it should be able to get that id. 话虽如此,我也知道浏览器是在机器上运行的最不受欢迎的应用程序,它应该能够获得该ID。

But still asking if there is a way? 但仍然在问是否有办法?

Not possible as far as I know. 据我所知,这是不可能的。

I believe it's a security issue. 我认为这是一个安全问题。 Your device ID is very sensitive information that you wouldn't want just any website being able to capture. 您的设备ID是非常敏感的信息,您不希望任何网站能够捕获。

Update: 更新:

It's not possible (without any hackery at least) to physically distinguish the computers accessing a web site without the permission of their owners. 没有其所有者的许可,不可能(至少没有任何hackery)在物理上区分访问网站的计算机。 You can store a cookie to identify the machine when it visits your site again but the key is that the user is in control, and rightly so. 你可以存储一个cookie,以便在它再次访问你的网站时识别它,但关键是用户处于控制之中,这是正确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM