唯一标识网站上的计算机
当用户访问我的网站时是否可以访问他们的 Mac 地址?
我想在计算机访问我的网站时唯一地识别它们。当IP地址改变或可以改变时,我如何使用python来做到这一点?
Is it possible to get access to a users Mac address when they visit my website?
I wanted to uniquely identify computers when they visit my website. As Ip addresss change or can be changed, how can i do so using python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
MAC 地址也可以更改,尽管不建议这样做。当有人访问您的网站时,您无法获得 MAC 地址
Cookie 工作得相当好,但它们可以在计算机之间复制。有些人不允许 cookie,有时人们会删除他们的 cookie。同一台计算机上的不同浏览器也会使用不同的cookie。
The MAC address can be changed also, although it's not advisable. The MAC address is not available to you when someone visits your website
Cookies work fairly well, however they can be copied between computers. Some people do not allow cookies, and sometimes people delete their cookies. Different browsers on the same computer will also use different cookies.
有一种相当可靠的方法来识别访问您网站的用户:用户名和密码。任何需要合理确定客户端是同一用户的站点都会使用某种身份验证系统。如果您需要确定正在与谁交谈,您应该要求人们进行身份验证。
尽管在某些情况下这也可能会失败:
其他机制无法可靠使用的原因:
此外,您没有连接客户端的 MAC 地址。
如果您需要可靠的系统,请使用用户名和密码。如果没有,请使用cookie并希望大多数人不会删除它。
There is a fairly reliable way to identify users who visit your site: username and password. Any site that needs to be reasonably sure that a client is the same user will use some sort of authentication system. If you need to be sure who you are talking to, you should request people to authenticate.
Although even this can fail in some circumstances:
Reasons why the other mechanisms cannot be used reliably:
In addition, you don't have the MAC address of a connecting client.
If you need a reliable system use username and password. If not, use a cookie and hope that most people won't delete it.
最好的方法是使用cookie。
如果您绝对需要 mac 地址,可以使用 Java Applet 来实现。但用户必须允许它运行。
The best way is to use cookies.
In case you absolutely need the mac address, you can use a Java Applet to do so. The user will have to allow it to run though.
不可以。您无法在网站中访问客户端计算机的 MAC 地址。
您能做的最好的事情就是使用浏览器 Cookie 来识别从同一 IP 地址访问的不同用户。
No. You can't access your clients computer's MAC ADDRESS in your website.
Best thing you can do is use a Browser Cookie to identify different users accessing from the same IP address.
不,绝对不是,MAC 不用于互联网,它只是本地简单的说法。
尝试使用 cookie 来识别用户。
No its absolutly not, MAC's aren't used in the internet, it is only localy simple speaking.
Try to use cookies for identifying users.