PHP Experts,
Say you wrote a good PHP script. And you sold licenses to it. Now how you gonna prevent piracy ? Your buyers can easily copy the code over and over again and sell each time. This riping you off.
How can you encrypt your PHP source code so they can’t modify the code ? Say you gave away an ad version. You don’t want your users removing your ads now do you . Hence, you need to encrypt the whole code so they can’t identify that part of the code that displays the ad to remove it.
So, how to encrypt your PHP source code ?
How to make it difficult for them to identify the
part of the source code that displays your ads ?
I mean, they can delete one encrypted line by line and run the script each time to check if your ad is removed or not. They can do this one line by line (combing operation) from top to bottom and test on each line deletion whether your ad is still active or not. When they delete a line and see your ads or your sponsor’s ads no longer appearing then they will guess they deleted the appropriate line that triggers your ads.
How to prevent them from identifying the relevant ad code line ? Got to foil their crookery!
Or say, your PHP script reports usages to your database, you don’t want them identifying the line that mentions your server, dB, etc and deleting it, even if the lines are encrypted, now do you ? I mean, if they manage to delete the right line then you will no longer get the usage data sent to your server. Or worst, they may replace it with their own server details and sell copies of it under your name. Their customers will think their usage data is getting collected by your servers when in reality they are getting collected by your rip off! Then your rip off can go and sell your user’s usage stats and land you in trouble with the law for selling user stats without their permission. Dangerous!
Is there away, I can get the code lines to scramble themselves if their PHP file is opened in a text editor or get the lines modified (into phoney code lines) or get all or some part of the codes deleted ? That way, the actual main source code will be protected.
I, as the programmer, should have a choice whether to have the original code get intact again once the file is closed in the PHP editor or permanently have the said code lines modified or deleted. If they get permanently modified/deleted then the PHP script will no longer work. Serves the buyer (rip off) for trying to sneak peek in the protected code. Otherwise, the PHP code/program/script will start functioning again once the php file is closed again on the PHP Editor. It will only start malfunctioning whilst open in the PHP editor.
Actually, this should happen no matter what file reader or editor they use. Be it PHP editors or otherwise like NotePad, Word Pad, MS Office, etc.
Interesting topic, hey ?
Anything else I need to know ?