Is it possible to generate a unique ID based on server hardware/OS? I want to generate license keys for my PHP web app based on customer server, just like Atlassian JIRA does.
Thanks for your help.
Is it possible to generate a unique ID based on server hardware/OS? I want to generate license keys for my PHP web app based on customer server, just like Atlassian JIRA does.
Thanks for your help.
I don't know the final solution but if it's Linux I think you can use lshw tool to read serial numbers of disks, processor, motherboard and other hardware devices and make hash (checksum) from combination of these info.
I think a better way is to code an EXE in any other language that gets the HWID from the server, and then have your PHP script exec() the EXE, if the output from the EXE matches then you run the script... If not, you show an error.
You might want to use blenc_encrypt() in PHP at the very least so that you can prevent users from going in and changing "if (systemhwid == validhwid)" to "if (1 == 1)"
A better option for encryption is to use IonCube (I think it's Ioncube that encrypts PHP files) but unfortunately it costs lots of money.
Search PHP.net for the blenc_encrypt() function