How can I protect my javascript code from being stolen?
February 15, 2012 4:02 AM Subscribe
I've written some customizable interactive activity templates in javascript that work on tablets and I want to sell to publishers. How do I prevent anyone from stealing and re-using the code?
There's nothing specifically unique or patentable in it. I've just simply spent a lot of hours customizing something that would be very useful to educational publishers fulfilling a very specific need. Most publishers don't want to spend the money to do it on their own. This is just the kind of thing they would buy.
Thing is, i've done it using jquery / JS. Do I have any other options other than obfuscation?
posted by postergeist to technology (9 answers total) 1 user marked this as a favorite
The usual solution is to offer great docs, support and maintenance so that it becomes challenging in the long run for the pirates to use it. Besides, medium to large companies always need these three resources and don't steal code in this price class.
Additionally, you could add a mechanism that makes it easier for you to detect sites that are using your code and see if they have a license or not. Then it's just a matter or involving a lawyer.
There are similar opinions on Stack Overflow on the limitations of obfuscation.
posted by Foci for Analysis at 4:28 AM on February 15, 2012 [3 favorites]