I've done a project for a client and as part of the deal since they couldn't afford much we agreed that I own the code. however the server is in their name and they could go and steal the code. How would I avoid that? I would like only apache and 开发者_运维技巧me to be able to read the files! Any alternative solutions will be appreciated!
There are lots of code obfuscators out there.
- http://www.raizlabs.com/software/phpobfuscator/
- http://www.codeeclipse.com/
- http://pobs.mywalhalla.net/
Google for more.
Any reason not to just host it for them?
I think this should help you.
http://www.ioncube.com/ is pretty good and very difficult to reverse engineer. You can do single script conversions (for important functions, so if they deleted the file it'd break the site)
I am of the opinion that you write in your contract that you own the code and they cannot edit it in any way. The downside of course is, then you have to make all the changes, and you are on the hook if they go out of business because of you. But in addition to other suggestions and answers, I think you should make sure the contract stipulates what you want.
精彩评论