How to force a PHP application to use a key?

About 4 years ago I used a php product called amember pro, this is a membership script that has plugins for 30 different payment processors, it was an easy way to create an automated membership site where users will pay payments and gain access to a specific area.

+1
php encryption key
source share
3 answers

fever has a similar model, you register, download software (also PHP), and then get an activation key. You can see how it works in the demo video (near the end).

If you give the source code, you cannot prevent someone who has programming knowledge from fixing any protection / copy protection.

One thing I can think of is distributing a compiled program or C / C ++ extension, which the PHP application connects to check the license. This compiled part can then call home, etc. Even this can be easily circumvented, though.

You can see some other ideas in these similar questions:

  • Obfuscator code for php?
  • The best solution for securing PHP code without encryption

Basically, if you give away the code that you are participating in an arms race, putting an increasingly sophisticated copy protection that can always be broken at the end. You have to decide how much effort is worth. I personally will not invest much effort.

+2
source share

Not an ideal way to do this, however you can use an encoder to hide the code and make it call a page on your server that returns a value that is hard to fake. It will be an intensive server, but can do what you want. You would like to do something where there was time. Updating code frequently.

+1
source share

I have seen this many times. Almost any software method that you think of can be circumvented if someone is interested in its work. We use ioncube to encrypt our non-hosted products and back up using a USB dongle. Can it be hacked? Yes. But people are mostly honest. I think it’s painful to hack and release frequent updates with new features that people won’t want to wait for people to pay for the script. If your price is not too high, people will simply decide to pay for it, rather than hack.

+1
source share

All Articles