Is there a way to protect my PHP script from being used without a valid license?

Is there any chance to restrict access to php script and use without a license? Scripts are paid, and I think that might be a way to prevent the "sharing" of this PHP script. Is this possible or impossible? Since the code is open, and I can not encrypt it.

I came to a conclusion and not sure if this can work or not?

a. script asks user to enter LICENSE / KEY

C. The license is sent to my licensing server and checks if the license is valid. (http: // ....? license = X)

C. The license is checked and the result is sent back to the client server.

D. script will not be executed if the LICENSE is invalid.

Is it practically possible? or not?

The problem is that the user can delete the license check part correctly (since the code is open)? But I could encrypt this file and make it part of the main file that the user does not need to edit, but still the required file, which, if it was deleted, the script will not function, probably .. hmm I'm lost :)

+4
source share
1 answer

No, I do not think that this is really possible. If you cannot encrypt it, then you have no way to prevent the deletion of this part of your script. You can try to make it a pain in the ass to remove it. But no matter how difficult it is, a particular encoder can always remove a license check, leaving the main script intact.

+4
source

All Articles