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

 

 

Link to comment
Share on other sites

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.