即使更改了IP或清除了浏览器数据,如何识别我网站上的唯一用户? [英] How can I Identify unique users on my website even IP is changed or browser data has been cleared?

查看:264
本文介绍了即使更改了IP或清除了浏览器数据,如何识别我网站上的唯一用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个视频流网站.我想统计每个视频的唯一观看次数.我提到了互联网上的一些站点,甚至问了一些其他程序员.他们说要么使用cookie,要么使用会话或IP地址.但是这些事情会随着时间而改变.另外,如果可能的话,我们可以使用用户计算机的MAC地址来执行此操作吗?我也在这里遇到了类似的问题-> http://bit.ly/Qh1KNR .他们说类似使用MAC地址的浏览器指纹之类的东西.那么你能告诉我哪种方法是最好的吗?

I am developing a video streaming website. I want to count unique views on each video. I referred to some sites on internet and even asked some other programmers. They say either use cookies or session or IP address. But these things changes over time. Also if possible can we do this using MAC address of the user's machine? Also I came across a similar question here -> http://bit.ly/Qh1KNR. They say there is something like browser fingerprint that uses MAC address. So can you tell me what method is the best one?

推荐答案

您可以使用Evercookie概念,该概念将cookie数据存储在不同的存储位置.如果用户清除浏览历史记录或cookie,它将从其他存储位置恢复cookie.用户必须使用javascript来创建evercookie,这是一个缺点.

You can use Evercookie concept which stores cookie data on different storage location . If user clear browsing history or cookies , it will restore it cookies from different storage location . There is one drawback user must on javascript to create evercookie.

这篇关于即使更改了IP或清除了浏览器数据,如何识别我网站上的唯一用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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