Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2008
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Licence System Help

    Hi,
    i'm wondering if there is any unique number that is fixed to the computer that is possible to obtain with a php script. I'm looking for something like a hardware id, but it doesn't look like that is possible.

    I will be using the number in a licensing system i am making so i don't want something like a mac address, since it can be changed easily.

    Thanks

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Nope. PHP can only obtain configurations that it has been given by the browser. Even the MAC is quite difficult to obtain with PHP, you will need to rely in external tools to obtain it.
    PHP running as a cli on a local system may be able to obtain more information since it can run system calls to other programs.
    Controlling licenses are always a problem with PHP since its interpreted. Zend has an extension for encryption or byte compiler (I don't know what it is, I only know it exists), but until it becomes more popular you won't be able to use it on a globally sold software product. This will let you hide you're code so you can hide you're big brother call-ins to see who is and is not licensed. Most users of the code won't know how to get rid of those.
    Sorry, you're just going to have to keep you're eyes open for copywrite infringement.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • Users who have thanked Fou-Lu for this post:

    zackwiny (08-09-2008)

  • #3
    New Coder
    Join Date
    Aug 2008
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post
    Well would it be possible to do it with a different client side like perl or MAYBE even javascript?

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    The only way to do it really is using a language that's output is compiled (java, c(+,++)), so people can't just open a file up and do a find/replace on whatever's doing the tracking. Even they aren't 100% fool proof, as you can tell by all the cracked programs out there. Not really got much choice until there's more servers supporting what Fou-Lu mentioned. A simple way is to hide a 1px x 1px transparent gif in the script output somewhere, then look in your logs to see which sites are using that gif.

  • Users who have thanked Nightfire for this post:

    zackwiny (08-10-2008)

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Quote Originally Posted by Nightfire View Post
    The only way to do it really is using a language that's output is compiled (java, c(+,++)), so people can't just open a file up and do a find/replace on whatever's doing the tracking. Even they aren't 100% fool proof, as you can tell by all the cracked programs out there. Not really got much choice until there's more servers supporting what Fou-Lu mentioned. A simple way is to hide a 1px x 1px transparent gif in the script output somewhere, then look in your logs to see which sites are using that gif.
    Thats a good idea. Quite a few people would overlook a simple image source, but if you hot link it to you're site you'll be able to track what sites are using it and determine if they are allowed to be using it. Still not fool proof of course.
    Piracy will always be an issue, no matter how well you've thought something out. Just gotta run it on the basis that the majority of you're users are honest, and try to track down the illegal users.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #6
    New Coder
    Join Date
    Aug 2008
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post
    Well for what i'm using this for it doesn't look like it'll be possible to do what i want to,
    so i've got another idea for how to do this...

    Thanks for your help anyway

  • #7
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You're welcome.
    Good luck on it! We know how tough it is to control licensing, so just keep chipping away at it until you are satisfied!

    Edit:
    There is actually an option. I hate to recommend this since I have yet to complete a full working app, but its a good concept.
    Consider using a client/server application. Generate you're PHP code using SOAP to create webservices, and write interfaces that retrieve data from the primary server. This is still by no means a perfect solution, but it would be an option to perhaps help control. It can be 'masked' as a function that looks for updates from the host.
    Last edited by Fou-Lu; 08-10-2008 at 03:09 AM.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #8
    New Coder
    Join Date
    Aug 2008
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Fou-Lu View Post
    You're welcome.
    Good luck on it! We know how tough it is to control licensing, so just keep chipping away at it until you are satisfied!

    Edit:
    There is actually an option. I hate to recommend this since I have yet to complete a full working app, but its a good concept.
    Consider using a client/server application. Generate you're PHP code using SOAP to create webservices, and write interfaces that retrieve data from the primary server. This is still by no means a perfect solution, but it would be an option to perhaps help control. It can be 'masked' as a function that looks for updates from the host.
    Well i don't know if i can do that on shared hosting or not,
    but i'll look into that.

    Thanks again


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •