0

I have a php web application which I want to limit the number of computers a client can install on depending on the price. e.g for $200 you can install on a maximum of 5 computers/servers, for $400 one can install on a maximum of 15 computers/servers and for $1000 you get unlimited installations. How can I achieve this using php?

Anyone who knows how I can achieve this? I have searched the same but I can't get anything about it.

Zollo
  • 7
  • You want to install php application on clients server? – Taron Saribekyan Aug 31 '15 at 14:25
  • you can't. it's php. even with obfuscators, there's no 100% reliable method of protecting your code to prevent the user from disabling the licensing check. – Marc B Aug 31 '15 at 14:25
  • You're looking for something like [this](http://stackoverflow.com/questions/18203112/is-it-possible-to-hide-encode-encrypt-php-source-code-and-let-others-have-the-sy). But it's not 100% bulletproof. – Andrei Aug 31 '15 at 14:28
  • You're barking up the wrong tree. If you want to sell Software as a service, you license the API, which you host. – Darth Egregious Aug 31 '15 at 14:58

2 Answers2

0

Since php it's interpreted, you share your code. If you want to make a downloadable and installable product with such license protection you need to obfuscate your code, using an external call to your licensing webservice.

The problem is that is easy to spot and to null (bypassing) the license checking since your code is visibile. You can look at IonCube. https://www.ioncube.com/php_encoder.php This encode your code and allow you to provide a kind of encryption that requires inverse engineering to read. (your costumers need to have a server with ioncube support). It's commercial.

Other way is that you host yourself you app and you sold access to your service.

Yuri Blanc
  • 636
  • 10
  • 24
0

Maybe have a look at https://www.ioncube.com/php_encoder.php?page=features as with other solutions it's not 100% bulletproof but it makes it a lot more difficult to share unauthorized copies.

mwoelk
  • 1,182
  • 10
  • 14