enveetee Posted January 22, 2015 Share Posted January 22, 2015 I have had a customer want to run my application (PHP/APACHE/MYSQL) on their server rather than a commercial hosting offering (JUSTHOST/GODADDY) I am reluctant, as it means giving them access to my PHP code which could possibly be copied or distributed. Can I protect against this? Quote Link to comment https://forums.phpfreaks.com/topic/294136-protecting-your-code-on-a-3rd-party-server/ Share on other sites More sharing options...
Ch0cu3r Posted January 22, 2015 Share Posted January 22, 2015 Can I protect against this? Short answer not really. As PHP is not a compiled language all code is in plain text format. Your options are to to use a software license agreement (EULA) to protect your assets (up to you how you enforce it). Or you could use an encoder which obfuscates your code, making it harder for the end user from reading your source code. Quote Link to comment https://forums.phpfreaks.com/topic/294136-protecting-your-code-on-a-3rd-party-server/#findComment-1503772 Share on other sites More sharing options...
Jacques1 Posted January 23, 2015 Share Posted January 23, 2015 PHP scripts can actually be compiled to byte code (e. g. with ionCube). This destroys the original source code and only leaves the low-level functionalities. Quote Link to comment https://forums.phpfreaks.com/topic/294136-protecting-your-code-on-a-3rd-party-server/#findComment-1503854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.