Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I provide a web service using a site and recently I got a proposal for franchising that service to another company.

The problems come when they want all my code to run in their servers. I understand their reasons, but I want to take measures that the core of my PHP code remains hidden and unchanged. I want to take measures that they don't resell my code to another bidder, or use my IP.

After some research I came up with a few solutions like PHP encryption, obfuscation or data fingerprinting.

What I'm asking is manly:

  • What should I be aware of when giving my code?
  • What can I do to prevent them from understanding and selling my code to another person?
share|improve this question

migrated from May 10 '11 at 10:57

This question came from our site for professional and enthusiast programmers.

Those sure are manly questions to ask! (I can't do single character edits...) – Deckard May 10 '11 at 11:08
up vote 8 down vote accepted

Best thing you can do in these cases is writing down everything on paper and get it signed by both companies, so you know what you can do when it's being sold and the buyer knows his limitations. There is no foolproof way of giving away your code (encrypted, obfuscated, fingerprinted or not) with 100% guarantee that the buyer will not resell your code.

share|improve this answer

In my experience, you're asking yourself the wrong questions.

Your single biggest concerns should be:

  1. Does this fit with my business model?

  2. How easy is it for them to find/create something similar?

If your answers are (a) not really and (b) rather hard, then stand firm and refuse.

Basically, it's one thing to be in the business of maintaining a piece of software that others market and integrate. And it's an entirely different thing to be catering to end-customers yourself. One of the worst situations you can place yourself in, is to be competing for customers with your own resellers.

Whichever arguments they've tossed at you (typically "you'll instantly reach our full customer base") are, as I've experienced them anyway, dubious at best: if your product is really good, it doesn't matter who is hosting it. At most consider white labeling, and even then I'd suggest that you think twice about it because it'll mean you'll lose control of your brand.

If they host your software and they're big, you're going to lose much needed expertise on things you'll need further down the road, namely customer care and scaling.

As a last note, keep in mind that it's generally bad to have a single customer that generates a huge chunk of your business. If any does, it basically means they own you in every sense but name. And be wary about letting yourself get sweet-talked into signing a joint venture agreement for the same reason: resellers don't like to be in bed with their competition, and you may end up with a single large customer as a result.

Good luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.