How to get client MAC address by a access on a website?

后端 未结 4 1282
星月不相逢
星月不相逢 2020-11-29 05:55

I have my website, and it records the number of visitors, IP and time of access...

I want to identify each visitor... I think that this was possible recording IP Add

相关标签:
4条回答
  • 2020-11-29 06:23

    Sorry but sending MAC address isn't part of the HTTP. However, you can use cookie to identify different users. Any backend language will do (add cookie in the server side). You can set the cookie in the client side using JavaScript too.

    0 讨论(0)
  • 2020-11-29 06:24

    It is only possible if you use a technique where you install a "native" app on the client machine. For example, an activeX component, java applet or a client application. Then that application, once installed can get the MAC and then call to your web server with the MAC as an argument. In other words, you have to build your own front end "browser" to handle logging in. Then once the user is logged in, you can launch the app in the default browser.

    It would be nice if future browsers allowed users to give permission to specific sites to access the MAC. Then if a site had a button that said "Register this device" the web application could do so without needing an additional native app installed (after all, the browser IS a native app).

    0 讨论(0)
  • 2020-11-29 06:25

    Can't you just have them store a cookie, so that when they come back they can be uniquely identified? No username/password requirement.

    http://en.wikipedia.org/wiki/HTTP_cookie

    0 讨论(0)
  • 2020-11-29 06:39

    The MAC address, by TCP/IP standards, is never communicated outside of the local-area network to which it pertains -- routers beyond that LAN don't even get the information you're trying to record. There are many other ways to try and identify unique visitors, including matching the user-agent's details in addition to the IP, serving cookies as part of your response, &c: it is, after all, a core functionality in the field of "web analytics". MAC addresses are simply not part of the gamut of techniques that it makes sense to utilize for it!-)

    0 讨论(0)
提交回复
热议问题