tags:

views:

74

answers:

5

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!

+2  A: 

There are lots of code obfuscators out there.

Google for more.

Byron Whitlock
raizlabs.com/software/phpobfuscator/ doesn't seem to work well (php5 classes)
Sirber
A: 

Hello, I think this should help you.

greg0ire
+1  A: 

Any reason not to just host it for them?

ceejayoz
A: 

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)

Kieran Allen
A: 

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.

MJB
I can accept being wrong, and I can accept not being optimal. But all I did was add to the other suggestions. Why the downvotes?
MJB
+1 agreed. The contract must state it, but people cheat all the time.
Byron Whitlock
@Byron: people cheat, but the threat of a lawsuit they HAVE to defend, win or lose, might not make it worthwhile.
MJB
I gave you a +1 :D
jsd911
@Shahin - thanks.
MJB