Jump to content

Get Unique Computer Description Using PHP


lilmer

Recommended Posts

Using PHP, how do I get some unique information  to a computer that is visiting my website. Something like private I.P. but you need a tools to get that and PHP doesn't have that. . 

I'd try to use $_SERVER["REMOTE_ADDR"] but it get a network I.P.

Link to comment
Share on other sites

I don't think you can get anything that is unique to the computer visiting via PHP. You could drop a cookie on their machine when they visit so you can track them. All you get in $_SERVER is whatever is voluntarily included in the HTTP request so a system based on that would not be more fallible than going down the cookie route. 

 

What's the system you are trying to create?

Link to comment
Share on other sites

Storing a cookie with a unique ID inside of it is the only thing you can do to try and uniquely identify a computer. There are no other identifying marks which can be tied to a specific computer. Even a cookie is not perfect, but it's the best possibility.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.