开发者

User identifiable info online

开发者 https://www.devze.com 2023-03-07 06:06 出处:网络
What is the info available online to identify a user. I looked at PHP and started a list: IP ($_SERVER[\'REMOTE_ADDR\'])

What is the info available online to identify a user. I looked at PHP and started a list:

  1. IP ($_SERVER['REMOTE_ADDR'])
  2. Browser ($_SERVER['HTTP_USER_AGENT'])
  3. 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


  1. From which site you come ($_SERVER['HTTP_REFERER'])
0

精彩评论

暂无评论...
验证码 换一张
取 消