在PHP中创建唯一的用户指纹的方法 [英] Ways to create a unique user fingerprint in PHP
本文介绍了在PHP中创建唯一的用户指纹的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在PHP中生成用户唯一性指纹"的最佳方法是什么?
What is the best way to generate a 'fingerprint' of user unique-ness in PHP?
例如:
- 我可以使用用户的IP地址 作为指纹", 可能是同一IP上的多个其他用户
- 我可以 使用用户的IP +用户代理作为 但是,指纹"只有一个用户 可以简单地从野生动物园换成 Firefox,再次被认为是独一无二的
- I could use a user's IP address as the 'fingerprint', however, there could be multiple other users on the same IP
- I could use the user's IP + user agent as the 'fingerprint', however, a single user could simply swap from safari to firefox and again be seen as being unique
理想情况下,指纹将标签标记为机器",而不是浏览器或"ip",但我想不到这是如何实现的.
Ideally, the fingerprint so label the 'machine' rather than browser or 'ip' but I can't think of how this is achievable.
欢迎您就如何唯一标识用户以及您的方法有哪些优点/缺点提出想法/建议.
Open to ideas/suggestions of how you uniquely identify your users, and what advantages/disadvantages your method has.
推荐答案
该网站几乎涵盖了您可以用来通过浏览器区分个人的每条信息.
This site covers pretty much every piece of information you can use to distinguish individuals through a browser.
JavaScript,Java和Flash很有帮助.
JavaScript, Java and Flash help a lot.
这篇关于在PHP中创建唯一的用户指纹的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文