Is it possible to get access to a users Mac ad开发者_开发技巧dress 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?
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.
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.
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.
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.
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.
精彩评论