检测MAC地址? - 通过浏览器,没有一个插件 [英] Detect MAC Addresses? - via browser, without a plugin

查看:745
本文介绍了检测MAC地址? - 通过浏览器,没有一个插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关验证目的,有没有一种方式,他们在网页上注册,例如检测用户的MAC地址?我想preFER一个LAMP的方法,但也开到ASP.NET的可能性。

For validation purposes, is there a way to detect a user's mac address as they're signing up on a webpage, for example? I'd prefer a LAMP approach, but also open to ASP.NET possibilities.

推荐答案

我想你可以通过阅读 ARP缓存底层操作系统,假定客户机和服务器在同一个网络上。

I guess you could by reading the ARP cache of the underlying OS, assuming that the client and server are on the same network.

然而,使用的MAC地址验证是在大多数情况下的馊主意

However, using the MAC address for validation is under most circumstances a bad idea:


  • MAC地址可以很容易地欺骗。许多网络驱动程序允许您设置地址到任何你想要的。

  • The MAC address can be easily spoofed. Many network drivers allow you to set the address to whatever you want.

MAC地址是链路本地。如果在服务器和客户端之间的至少一个路由器,服务器将看到最近的路由器的MAC地址

The MAC address is link local. If there is at least one router between the server and the client, the server will see the closest routers MAC address.

这篇关于检测MAC地址? - 通过浏览器,没有一个插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆