Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript Unique Browser Id

is there anyway to create a unique ID for a browser within javascript?

Im not talking about an ID that is random everytime it is generated but an ID that is unique to the browser it is generated in but also takes into account the computer its running on.

Example:

Windows 7 Chrome might generate: asdh128hakj4gh

Windows 7 Opera might generate: 23hjad823hjakk

Windows 7 Chrome, diff hardware, might generate: asd238881jaal

etc...

Is there anyway to do this?

like image 368
Ozzy Avatar asked Feb 08 '11 17:02

Ozzy


People also ask

How do I find unique browser ID?

No, browsers don't have a unique ID. There is no such thing. If there were such a thing, it would be an online advertising company's dream! That said, if you're serving up your site via HTTPS, you can issue your clients with client-side X.


2 Answers

What you are looking for is called Browser Fingerprinting.

You can google for some open source libraries. Ex: fingerprintjs2

Check out EFF's demo

like image 90
Makubex Avatar answered Sep 18 '22 14:09

Makubex


Use cookies and some unique hash into its. (Each browser has own cookie jar, even if on computer is many browsers)

like image 25
IProblemFactory Avatar answered Sep 18 '22 14:09

IProblemFactory