唯一标识网站上的计算机

发布于 2024-09-09 22:56:04 字数 96 浏览 7 评论 0原文

当用户访问我的网站时是否可以访问他们的 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 技术交流群。

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

发布评论

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

评论(5

彡翼 2024-09-16 22:56:05

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.

剩一世无双 2024-09-16 22:56:05

有一种相当可靠的方法来识别访问您网站的用户:用户名和密码。任何需要合理确定客户端是同一用户的站点都会使用某种身份验证系统。如果您需要确定正在与谁交谈,您应该要求人们进行身份验证。

尽管在某些情况下这也可能会失败:

  • 用户选择了一个容易猜到的密码。
  • 用户选择公开其密码。
  • 用户的密码被间谍软件复制。
  • 一名用户在多个系统中使用相同的密码,而其中一个系统遭到黑客攻击。
  • 等等...

其他机制无法可靠使用的原因:

  • IP 地址可以更改
  • MAC 地址可以更改
  • Cookie 可以更改

此外,您没有连接客户端的 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:

  • A user picks an easy to guess password.
  • A user chooses to publish their password.
  • A user has their password copied by spyware.
  • A user uses the same password for multiple systems and one of the other systems was hacked.
  • etc...

Reasons why the other mechanisms cannot be used reliably:

  • IP addresses can be changed
  • MAC addresses can be changed
  • Cookies can be changed

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.

北城挽邺 2024-09-16 22:56:04

最好的方法是使用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.

恍梦境° 2024-09-16 22:56:04

不可以。您无法在网站中访问客户端计算机的 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.

最后的乘客 2024-09-16 22:56:04

不,绝对不是,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.

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