Software Licensing/Copy Protection - DIY or Buy?


As an ISV/software publisher, would you produce your own licensing/copy protection solution, or would you buy into a professional solution?

Which route would you choose and why?

Software Copyright Licensing

asked Jun 8 '10 at 18:59
61 points

9 Answers


I've done both and in each case they were the right decisions. (In my opinion)

I rolled my own simple protection for software I sold for $99.

My latest venture is licensed for $9000 to $25,000. We use a dongle licensing scheme for that one.

Note that I have very limited experience with this aspect of development. You need to just make a decision and move on and realize that you are never going to beat a determined hacker or group who wants to steal your software.


I suppose I should provide a bit more detail...

For the one I wrote myself it was a C++ desktop app that interfaced with some lab hardware through rs232. It was a very niche product. I did not provide the ability to give timed trials - rather the free version was limited in the number of devices it could attach to. I eventually configured a database and paypal mechanism to automate sending the user a license code after a purchase. I made a mistake early on in making that a manual process. It was terrible. However, many of the customers were running this on a machine that had no internet connectivity.

If you are going to write your own I would say keep it very simple and don't try to get fancy and solve all the problems. You will always lose out in the end and you can't justify your time spent.

I think Jason C had a suggestion on how he made his initial licensing. I will look for it and link it here.

Right now I am using Keylok. They just happened to be recommended to me and my partner when we had a need for it. It works for us. The downside is the physical shipping to a location, but not a big deal as the configuration and sales issues take up significant time anyway.

Whatever you choose I recommend making it very modular/easy to replace - especially if you roll your own. Be flexible and be ready to change technologies, though one hates to waste cycles re-doing completed tasks.

answered Jun 9 '10 at 00:05
Tim J
8,346 points
  • Any user experience concerns around your solutions that may have impacted adoption? – John Bogrand 14 years ago
  • Absolutely. Dongles are very intrusive, but with $10,000 software I think we can get away with it. Not having easy license distribution for my home-rolled one was a hassle - until I fixed that and made it a lot easier. – Tim J 13 years ago


The answer depends a bit on the environment you're targetting since that dictates how many licensing system options you have to chose from.

In general, time you spend developing and supporting your licensing system can be very steep, and it's non value add - it's taking time away from adding features and doing things your customers really want. That said, sometimes it's worth it if there's something special about your licensing. For example, perhaps you want to be very generous in your license enforcement; most systems tend to be very strict.

If you can fit your needs into an off the shelf system you are likely to be better off in the long run because they've already figured out that file permissions and encryption work differently on Windows XP Home than Windows Server 2008 or in Turkey or whatever. These aren't problems you want to take up your time.

Of the ISV's I've talked with about 2/3rds built their own systems. Of those, I can't think of any that it hasn't been both a support hassle and a source of fear - fear that it's locking people out of being able to run trials or otherwise is costing sales. I've seen transitions happen both ways (from in-house to purchased and purchased to in-house).

There are some very good purchased systems. I'd recommend you seriously examine them before investing significantly in your own system. If you do invest in your own, have it be for a competitive advantage because it is going to occupy a sizable portion of your development budget if you're a small company, at least initially.

In our case we ended up building our own because we're terrified of customers not being able to use our software when they need it - we needed a system to tend to let people run it, not block them and have some grace periods for things. This is unique to our situation: We didn't want someone who needed to use our tool to fix a server find out they couldn't run it because the server couldn't contact the Internet or because our activation server was inaccessible or something. That said, it was a close decision and we very nearly went with a third party option except we were scared off by some very dodgy press they got right around the time we were making our decision (moral of the story there: Don't pick a fight with a customer in public). Despite us having a very solid engineering base to draw from in encryption and systems it still took 200% longer than we predicted.

answered Jun 9 '10 at 01:57
Kendall Miller
968 points
  • +1 "I can't think of any that it hasn't been both a support hassle and a source of fear" – Cad Bloke 12 years ago


I agree with Kendall and "the dictator", especially the sentiment that your time is better spent making and marketing your product rather than wasting thousands of hours needed to make decent licensing in-house.

Just buy it, don't even consider writing yourself. Spend that valuable to time into the product.

Obviously I'd recommend you trying (and then using) LimeLM -- an online activation and licensing solution for Windows / Mac OS X / Linux. I'm the founder of the company that makes LimeLM, so of course I'd say that.

We also have an article that goes into detail about how to make properly designed hardware-locked licensing (a.k.a. online activation). See: How hardware-locked licensing works . This describes the steps you need to take to build hardware-locked licensing in-house. The article also goes into the common mistakes companies make when designing licensing (and how to avoid these mistakes). I believe it gives enough details to set you on the right path, but not so many details as to bore you to tears.

Tell me if it helps. Or if you think we're not giving enough details let me know (either comment on this post or send me an email at [email protected]).

Cracking can't be stopped

Also, "alphadogg" brought up cracking:

If there is a big enough "street cred" value, or a big enough market using the software, crackers will hack it.

This is absolutely right. I'll just expand this to say if it exists on a computer it can be cracked. That is, all software can be cracked (and easily) whether you have a big market or not.

So what's my point? My point is don't fall for companies promising "uncrackable" licensing protection or promise to "thwart hackers and crackers" with "anti-debugging" tricks. These tricks are all snake oil . That is, "anti-cracking" are all bogus. You can't stop cracking. Full stop.

Why have licensing if it can be cracked? The point of licensing is to increase your revenue by preventing casual piracy (using serials over and over again). There is real money to be made by stopping casual piracy. Don't worry about crackers because crackers don't buy and customers don't crack.

answered Jul 11 '12 at 13:42
Wyatt O'day
964 points


Just buy it, don't even consider writing yourself. Spend that valuable to time into the product.

If someone is going to crack it, they'll crack whether it's off the shelf product or a custom product. So there is no way to stop it. At least when you buy it you don't need to spend time on that (it's not a one time hassle, there'll be always on going process to fix bugs etc.).

Last thing you want to do is pissing off paid customers.

answered Dec 9 '10 at 23:17
The Dictator
2,305 points


I agree with fx.

If there is a big enough "street cred" value, or a big enough market using the software, crackers will hack it. Especially in the latter case, malicious "black hats" will use it to distribute their payloads and increase the size of their botnets.

Look at it this way, do you think you can create or afford a system better than BD+ on Blu-Ray?

It's been hacked since 2008, but was said to be foolproof.

To really build an unhackable system takes some serious cryptographic and application structure knowledge. For example, if your software process an install key with the same algo at the same place in each exe out there, your software is 100% hackable. If it hasn't been hacked, it's because no one cares to.

Furthermore, the bigger problem is that no matter how great the system, the "human layer" is a loophole. How many times have I had a client on the phone who claims they are validly installing it for the sixth time, beyond their allotted five installs? How do I really know? Or, do I play hardball and risk pissing them off?

Buy into a simple licensing system to put a road bump on the low-level, casual piracy and move on to making your offerings worth paying for.

answered Dec 10 '10 at 00:52
1,383 points
  • Sidebar: I once found a client who had been using my software for months using timed trials and virtual machines. As the system approached expiration, he just instantiated another VM and copied the data over. How do you "protect" against that? Make exporting your data difficult? Yeah, that's a great idea for the clients who aren't so "inventive". – Alphadogg 13 years ago


Writing effective custom software copy protection solution requires too much of your valuable time.

There are many ready-made software protection tools with different pricing (from cheap to really expensive) and licensing (from royalty free to per license fees) options you could choose from.

Sure, there is no uncrackable system, hardware or software, if application works it can be cracked. Software protection tools are mostly intended for prevention of casual cracking and illegal distribution by ordinary (standard) users. Distributing commercial software without any kind of licensing control is simply wrong strategy which would shut down you business for good.

answered Oct 30 '12 at 22:17
11 points


A few months ago I did all the research in the world on this matter.
I've tested all products possible.

I ended up creating my own licensing engine and purchased SmartAssembly for protection/obfuscation.

It took me less time building my licensing engine than understand how others work and perform a real test.

Of course, all depends on your licensing needs.

answered Jun 9 '10 at 00:24
Stefanos Tses
981 points
  • You tested ALL products possible? – Tim J 13 years ago


Check out Quick License Manager by Soraco Technologies. You'll be up and running in a couple days. Spend your energy on your core business, your customers would be grateful that you add features to your product rather than spending valuable resources on making sure they do not cheat.

answered Aug 24 '17 at 19:22
Sam Porter
1 point


I would definitely consider using an off-the-shelf licensing product - developing a license scheme is not so easy and you are better off spending that time on developing your actual core product functionality. Have a look at CryptoLicensing.

DISCLAIMER: I work for LogicNP Software, the developer of CryptoLicensing.

answered Jul 10 '12 at 13:51
101 points

Your Answer

  • Bold
  • Italic
  • • Bullets
  • 1. Numbers
  • Quote
Not the answer you're looking for? Ask your own question or browse other questions in these topics:

Software Copyright Licensing