PHP machine unique identifier

Is it possible for php (or javascript in the worst case) to create a unique identifier for a user who is not cookie or ip dependent. I saw on myminicity.com that in each city the counter only increases once a day (it has a unique identifier for everyone I think) and even if I delete my cookies and update ip, it still seems to detect having visited me as already, and I want to make this system for me. I have seen many people saying that this is not possible, and if this is true, then which of the best alternatives?

EDIT

Now I got the idea that I can use a combination of several cookies (with several authentication methods), multiple localstorage values ​​(the same as cookies), tracking mysql IP data and flash cookies, and if any of found, the user has visited until today.

+4
source share
4 answers

There is some information that the user agent sends to the server. See for example Panopticlick for how unique your browser is. Another option would be to use Flash cookies , which are harder to drop and delete.

+5
source

You can create a GUID for each computer, assuming that you can find a way to save it so that the user cannot delete it (good luck).

Most sites that do this kind of thing store the IP address in the database on the server and identify the “users” in this way. Using javascript, you can combine an IP address and a MAC address to allow multiple users behind a NAT gateway.

+1
source

myminicity.com uses your IP range to determine which region you are coming from ... It is called the IP geolocation base. There are free and paid services for this. Google's “IP-based geolocation” ... For more information, see http://en.wikipedia.org/wiki/Geolocation_software

+1
source

Some of the $_SERVER can be used to generate a computer identifier. For instance:

 $id = $_SERVER['HTTP_USER_AGENT'].$_SERVER['LOCAL_ADDR'].$_SERVER['LOCAL_PORT'].$_SERVER['REMOTE_ADDR']; 

The $_SERVER values ​​may be fake, however it will still add an extra layer of security that is independent of cookies or your IP address.

0
source

Source: https://habr.com/ru/post/1316025/


All Articles