Jump to content

Create a unique "Machine ID" using JS?


5kyy8lu3

Recommended Posts

Hi.

 

I'd like a way to create a unique "Machine ID" of a client's machine.  I'd like to be able to identify the machine regardless of the IP they appear behind.  Is this possible using JS?  I know a cookie can be set but the user can delete or disable cookies, or just use a proxy.

 

If you'd like to know why, I'm basically creating a visitor log script, and wanted to have a way to keep track of machine id's to make tracking of malicious activity easier.

 

Why JS?  Since it's client-side, I figure I can get details of their machine, like screen resolution, local ip, user agent, etc and concatenate them and hash that to get a "machine ID".

 

It sounds doable but I'm very very new to JS so I didn't know if this is a good method of doing so or if there's a better way of accomplishing this.

 

Thanks ahead of time.

Link to comment
https://forums.phpfreaks.com/topic/202249-create-a-unique-machine-id-using-js/
Share on other sites

Since Win XP, each Windows XP computer has a unique machine ID, which is how Microsoft prevents Windows from being installed on more than one machine concurrently. This is available via Windows OS API calls, but I don't know more than that. If you can find out the API call, and call it via Javascript, you got your ID.

 

This machine ID is based on a combination of the OS key, and hardware components, to virtually guarentee a unique id for each machine.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.