What is the info available online to identify a user. I looked at PHP and started a list:
- IP ($_SERVER['REMOTE_ADDR'])
- Browser ($_SERVER['HTTP_USER_AGENT'])
- Browser Language (?)
what else?
I am trying to create a temp user signature (in addition to cookies, if those are cleaned). Say we get two users: A and B. There can be a chance they come from the same IP, but perhaps their browser environment is slightly different.
Is the following coming from user's browser too?
HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q开发者_如何转开发=0.7 HTTP_ACCEPT_ENCODING
Browser Language = $_SERVER["HTTP_ACCEPT_LANGUAGE"]
For others;
foreach($_SERVER as $a=>$b) {
print $a . " = " . $b . "<br />";
}
As far as user identifiable, that's pretty much everything. You can look at the $_SERVER array in the php.net documentation to learn how to get these variables:
http://php.net/manual/en/reserved.variables.server.php
If you wanted some Geo-location based off the IP address, php has a library for it:
http://php.net/manual/en/book.geoip.php
- From which site you come ($_SERVER['HTTP_REFERER'])
精彩评论