通过任何方式ASP.net应用程序的客户端机器的MAC地址 [英] MAC Address of Client Machine for ASP.net Application through any way

查看:51
本文介绍了通过任何方式ASP.net应用程序的客户端机器的MAC地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Web应用程序获取MAC地址(物理地址)而不是客户端计算机的IP地址时遇到问题,以验证用户登录帐户。



请告诉我任何解决方案尽快?

I have a problem in getting MAC Address (Physical Address) instead of IP Address of Client machine with web application to validate user login account.

Please tell me any solution as soon as possible ?

推荐答案

基本上,你不能。有一种方法,但它需要在99.999%的情况下不会发生的情况:在PC上启用IE和ActiveX。

你甚至无法获得客户端机器的IP地址减去MAC地址(从未在路由器之外使用) - 你得到的是将内部网络连接到互联网的路由器(或类似地址)的IP地址。如果您在同一公司或家庭中有五个客户端,则会将它们全部读取为相同的IP地址。



即使您可以使用ActiveX控件来读取MAC地址,仍然存在两个大问题:

1)MAC地址非常简单到欺骗。

2)MAC地址在互联网上并不是唯一的 - 在网段中是唯一的。



Don'您是否认为如果通过互联网绝对识别机器这么简单,那么银行和信用卡公司会坚持您在他们访问您的帐户之前注册MAC?
Basically, you can't. There is a way, but it requires circumstances which do not occur in 99.999% of circumstances: IE and ActiveX enabled on a PC.
You can't even get the IP address of the client machine, much less the MAC address (which is never used beyond the router) - what you get is the IP address of the router (or similar) that is connecting the internal network to the internet. If you have five clients within the same company or household, you will read them all as the same IP address.

Even if you could use an ActiveX control to read the MAC address there are still two big problems:
1) MAC addresses are extremely simple to "spoof".
2) MAC addresses are not unique across the internet - just unique within a network segment.

Don't you think that if it was that simple to absolutely identify a machine over the internet, banks and credit card companies would have insisted you register the MAC with them before you can access your account?


这篇关于通过任何方式ASP.net应用程序的客户端机器的MAC地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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