Search code examples
javascriptjqueryweb-applicationssignalrhybrid-mobile-app

Getting Device ID using JQuery or Javascript


Is there a way to get the device's unique id using JQuery/JavaScript.

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.

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.

But still asking if there is a way?


Solution

  • 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.

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