如何通过网站访问获取客户端MAC地址?

发布于 2024-09-13 14:31:58 字数 198 浏览 8 评论 0原文

我有我的网站,它记录了访问者的数量、IP和访问时间...

我想识别每个访问者...我认为记录IP地址是可能的...但是当IP是动态的时,我的系统出现故障。所以我想我可以解决它记录MAC地址...可能吗?应该使用什么语言? PHP、ASP、Javascript?

谢谢

编辑:我可以用什么来识别每个用户,而无需登录信息(用户名和密码)。

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 Address... but when the IP is dynamic, my system fails. So I think that I can solve it recording MAC address... is possible? What language should use? PHP, ASP, Javascript?

Thanks

Edit: What I can use to identify each user without having login information (username & pwd).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

薔薇婲 2024-09-20 14:31:58

根据 TCP/IP 标准,MAC 地址永远不会在其所属的局域网之外进行通信 — 该 LAN 之外的路由器甚至无法获取您尝试记录的信息。

还有许多其他方法可以尝试识别唯一访问者,包括匹配除 IP 之外的用户代理详细信息、将 cookie 作为响应的一部分提供等……毕竟,这是“网络”领域的核心功能。分析”。

MAC 地址根本不属于对其使用有意义的所有技术的一部分!

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, etc… 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!

翻身的咸鱼 2024-09-20 14:31:58

只有使用在客户端计算机上安装“本机”应用程序的技术才有可能。例如,activeX 组件、java applet 或客户端应用程序。然后,该应用程序一旦安装就可以获取 MAC,然后使用 MAC 作为参数调用您的 Web 服务器。换句话说,您必须构建自己的前端“浏览器”来处理登录。然后,一旦用户登录,您就可以在默认浏览器中启动应用程序。

如果未来的浏览器允许用户授予特定站点访问 MAC 的权限,那就太好了。然后,如果网站有一个按钮显示“注册此设备”,则 Web 应用程序可以执行此操作,而无需安装额外的本机应用程序(毕竟,浏览器是本机应用程序)。

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

千紇 2024-09-20 14:31:58

难道你不能让他们存储一个cookie,以便当他们回来时可以唯一地识别他们吗?没有用户名/密码要求。

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

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

风月客 2024-09-20 14:31:58

抱歉,发送 MAC 地址不是 HTTP 的一部分。但是,您可以使用cookie来识别不同的用户。任何后端语言都可以(在服务器端添加cookie)。您也可以使用 JavaScript 在客户端设置 cookie。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文