How to get the computer's device number with JS? mac address
黄舟
黄舟 2017-05-18 10:56:37
0
4
1241

How to get the physical address of the computer in js. Or how to determine user uniqueness in general.

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
某草草

一般通过用户名,用户访问时的IP地址

大家讲道理

Use the current browser type + browsing version number + current IP + operating system type + operating system version to make a hash

曾经蜡笔没有小新

The front-end cannot get it, please ask the back-end for help, and I will get it and send it to you.

黄舟

Simple method: UserAgent + IP. The disadvantage is: For example, if a company, school or other group uses the same computer/browser and the export IP is the same, it will be considered the same one.
Or: When the user makes the first request, the backend generates a unique token and puts it in the cookie. Every time there is a new request, first determine whether there is a token in the cookie. The disadvantage is: if the user clears the browser cache, they will think they are a new user.
As for obtaining the mac address through js, it seems that only certain versions of IE support it (you can check for details).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!