Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I Identify unique users on my website even IP is changed or browser data has been cleared?

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?

like image 681
Shiva Pareek Avatar asked Oct 15 '12 11:10

Shiva Pareek


2 Answers

Yes, all those attributes can change and there is no certain way to detect whether the same person has watched the video twice. Someone can watch it once in school and another time at home with different browsers and IP addresses.

You best bet is probably with IP-addresses, counting some people twice and skipping some people (because of NAT enabled routers).

Another way is to only allow registered users to watch videos and record what they have seen.

like image 61
strmstn Avatar answered Sep 19 '22 02:09

strmstn


You can not track a user with fingerprint. What fingerprint does is to collect some information about the operating system, time zone, fonts installed, plugins,... In some cases may work, but is not 100% true. In some eviroments (like schools, universities, etc) the operating system, browsers and almost all configuration may be the same and it is imposible for you to track an user.

like image 22
maralfol Avatar answered Sep 20 '22 02:09

maralfol