Restrictions in Software License Agreements
Short answer: the software license restrictions in your agreement, no reverse engineering, no third-party use, and the custom limits you add, are usually enforceable. Two software companies learned that the hard way in court, against Blizzard Entertainment and IBM. So if you need a unique restriction to protect your product,