Reputation: 925
Is there a way to check if a PHP script has been modified?
I've written a script that people will install on their own server, and I want to be able to check if the output is authentic or if it has been faked.
Is this possible?
Upvotes: 1
Views: 66
Reputation: 841
The short answer is: you can't. Because the server (which you don't control) executes the code (which you no longer control), they have full control over the response. It's always going to be possible to change stuff and try to fake that it's legit.
But, you can try to make it harder. This is the same premise behind software piracy protection, digital rights management, and other similar technologies designed to restrict what actions can be performed with information outside the owner's/originator's control.
Some ways to do this:
Upvotes: 2