如何使用 C# 从 ASP.NET 检索 MAC id
我想检索访问我网站的所有用户的 MAC ID。我该怎么做?
是否可以在Web上检索MAC ID
I want to retrieve MAC ID of all users who are visiting to my website. How can I do this ?
Is it possible to retrieve MAC ID on Web
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,这是不可能的。 IIS 不会记录它,您可以获得的最好信息是用户的 IP 地址。
MAC 在网络级别发送,因此您可以在客户端和客户端之间插入代理。您也许能够捕获此 IIS 服务器,但不能使用 IIS 开箱即用。
From what I know, this is not possible. IIS doesn't log it, and the best thing you can get is the IP address of the user.
The MAC is sent at the network level, so there is a possibility that you could insert a proxy between the client & the IIS server that you may be able to capture this, but not out of the box with IIS.
我认为大多数浏览器都不会报告“MAC”地址。它不在任何 http 标头中。我想您已经部署了一个客户端应用程序,该应用程序将查询用于连接到互联网的网络适配器的 MAC 地址,然后发送该地址。
I don't think "MAC" addresses are reported by most browsers. It's not in any of the http headers. I imagine you'd have deploy a client-side application which would query the network adaptor that was being used to connect to the internet for it's MAC address, and then send that.
可能有帮助:
http://www.java2s.com/Code/CSharp/Network/GetMacAddress。 htm
或使用 java 小程序: http://rizwanshah.blogspot.com/2009/04/restrict-web-page-access-based-on-mac.html
May be helpful:
http://www.java2s.com/Code/CSharp/Network/GetMacAddress.htm
Or use a java applet: http://rizwanshah.blogspot.com/2009/04/restrict-web-page-access-based-on-mac.html