Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uniquely identify a computer?

Tags:

php

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();
like image 889
Roko C. Buljan Avatar asked Feb 19 '11 00:02

Roko C. Buljan


3 Answers

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?

like image 86
John Gietzen Avatar answered Nov 08 '22 07:11

John Gietzen


No.

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

like image 32
Oliver Charlesworth Avatar answered Nov 08 '22 07:11

Oliver Charlesworth


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.

like image 39
Tim Lytle Avatar answered Nov 08 '22 05:11

Tim Lytle