5

Is there any way to 'grab' some personalized ID, INFO, NAME, NUMBER, DATA, etc.?

Anything just to differentiate and recognize two or more PC on the same IP: something like the Computer name of the user besides $_SESSION?

None of these work:

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
php_uname('n');
php_uname();
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Roko C. Buljan
  • 196,159
  • 39
  • 305
  • 313
  • 1
    This seems similar, in principle, to the question: [Uniquely identify one computer (tagged 'php')](http://stackoverflow.com/questions/1331046/uniquely-identify-one-computer), but not an exact duplicate. – David Thomas Feb 19 '11 at 00:48

4 Answers4

11

Well, you won't be able to do this from only the HTTP request, but you do have at your disposal the following techniques:

  1. Remote Address
  2. Cookies/Session
  3. User Agent
  4. Client-side Web Technologies (e.g. Java or Flash or Silverlight object)

Basically, you can use the concepts of Evercookie to identifiy a client. That being said, why not just use a login system?

John Gietzen
  • 48,783
  • 32
  • 145
  • 190
9

No.

(At least not without the users' explicit cooperation.)

Oliver Charlesworth
  • 267,707
  • 33
  • 569
  • 680
  • 2
    I thought about answering, but I just couldn't bring myself to do so. +1 for having the balls to 'just say no.' =) – David Thomas Feb 19 '11 at 00:51
  • @David @Oli :) I realized that, but I had hope... I'll try to create a jQuery cookie with some sort of generated ID ('time' or something) and pass it to a php string that in combination with the user IP something like: `$userId = md5(getenv(REMOTE_ADDR).''.$cookieTime);` and store this into a temp file on the server. :| Is that ok? :) – Roko C. Buljan Feb 19 '11 at 14:29
  • and what if i have user cooperation? – Arun Sharma Apr 09 '15 at 15:14
3

There's plenty of information that can be used to create a browser 'fingerprint', but nothing that's guaranteed to be unique. You can find a list of the various data point at the Panopticlick site.

Tim Lytle
  • 17,549
  • 10
  • 60
  • 91
0

You can try to use OCS inventory! http://www.ocsinventory-ng.org/en/

Marco
  • 2,757
  • 1
  • 19
  • 24