232

I'm creating a few closed-source applications on my own (no big company behind me) and am wondering exactly how to protect them. At the top of all the source code files I have this pretty basic copyright notice:

/*******************************************************
 * Copyright (C) 2010-2011 {name} <{email}>
 * 
 * This file is part of {project}.
 * 
 * {project} can not be copied and/or distributed without the express
 * permission of {name}
 *******************************************************/

However I'm really starting to think that's not enough. Without the money to get a lawyer, I'm interested in any closed-source license that essentially says "You can use it, and that's it". Finding one has been extremely difficult as I can only find open source license comparisons or "Find a lawyer" answers.

Is there any closed-source license that I can use that says something similar to this?

M.Sameer
  • 1,374
  • 4
  • 11
  • 20
TheLQ
  • 13,478
  • 7
  • 55
  • 87
  • 17
    Why include the license in source code files if by being a closed-source project means you are not distributing the source code files? How do you expect others to view this license? – Bernard Apr 14 '11 at 15:06
  • 37
    @Bernard Including the license in the source is a legal maneuver. In the event the source gets somehow leaked, any viewer is still aware that they should not have access to the source -- i.e. they cannot use plausible deniability as a defense. – jamesbtate Apr 14 '11 at 15:14
  • @TheLQ - We already have a term for that, `non-free` .. (referring to liberty, not price). – Tim Post Apr 14 '11 at 15:15
  • 2
    Do you actually need a license? Do you want protection other than copyright law gives you? Bear in mind that, if you want a license that restricts more than copyright law, you will have to get some sort of assent to the license. – David Thornley Apr 14 '11 at 15:17
  • @Tim Post: Stallman labeled such software "proprietary". Not that everybody likes to use his definitions. – David Thornley Apr 14 '11 at 15:19
  • @puddingfox: I see your point, but then the more important matter is how the source code got leaked, since @TheLQ says they are developing the applications on their own and thus no one else should have access to the source code. – Bernard Apr 14 '11 at 15:20
  • 1
    @Steve We don't close questions here as duplicates of SO questions. That question only covers non-commercial applications, while this question doesn't impose the same constraint. Definitely related, though, so thanks for finding it. – Adam Lear Apr 14 '11 at 15:24
  • @Bernard: To investigate where a leak is, is helps to have good evidence that a leak took place, and where the code went. If Company A writes something similar, you can be suspicious, but you can't really do anything. If you can show that Company A is using your proprietary code, you have many more legal options (and hence more options that don't involve a courtroom). – David Thornley Apr 14 '11 at 15:26
  • @TheLQ there is a "proprietary" tag which has the same meaning. – M.Sameer Apr 14 '11 at 15:53
  • I don't get this question. A license is what you do when you want to let other people use your code. It doesn't strengthen your copyright... – Ben Jones Dec 15 '22 at 04:35
  • https://www.gnu.org/licenses/license-list.html#NoLicense – Ben Jones Dec 15 '22 at 05:36

2 Answers2

210

Something like this is adequate, depending on where you live:

/* Copyright (C) YoYoDyne Systems, Inc - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * Written by Elmer Fudd <efudd@yoyodyne.com>, September 1943
 */

(2016 update: The phrase "All Rights Reserved" used to be required in some nations but is now not legally needed most places. In some countries it may help preserve some of the "moral rights.")

This means you can't:

  • Copy the file
  • Print the file out, scan it and copy the image
  • Print the file out, take pictures of it and distribute the film
  • etc ...

However, take care to note that in some countries, there is no such thing as copyright. This is also completely in addition to a strong license that you ship with your product, which should go into greater detail.

These sort of 'license headers' are designed simply to alert someone who happens upon a file that they should not distribute it.

We use something very much like that in stuff that we have that needs to stay behind closed doors. For instance, it alerts someone to not post functions on Stack Overflow.

Someone who p0wns your dev server to get your code probably isn't going to pay attention to it, however. Note, again, what you're describing is NOT a license, it's a per file assertion of copyright and specifically stating that the code is proprietary.

Glorfindel
  • 3,137
  • 6
  • 25
  • 33
Tim Post
  • 18,757
  • 2
  • 57
  • 101
  • There are few countries that don't have a copyright law based on the Berne Convention, and those countries don't tend to have thriving computer installations, and you can't get that much money out of them anyway. There are more countries where copyright is ignored to a large extent, and people there won't care about licenses either. – David Thornley Apr 14 '11 at 16:09
  • and if it is not a company but an indie developer, what I put here "Copyright (C) YoYoDyne Systems, Inc - All Rights Reserved"? What is that "Inc"? – Aquarius Power Dec 16 '14 at 22:41
  • 4
    @AquariusPower: "Incorporated", like *[Monsters, Inc.](http://en.wikipedia.org/wiki/Monsters,_Inc.)* – Matt Feb 24 '15 at 01:56
  • 1
    The "license" in this answer might contradict existing licensing terms in an outside contract. This could lead to ambiguity in ownership and distribution rights. You should indicate what has precedence in the case of a conflict. – Dan Loewenherz May 02 '16 at 18:38
  • 13
    Remove the (C), as it doesn't mean copyright, nor is it a replacement for © nor does it have legal weight. The "Copyright" you typed is sufficient, and "(C) only means copyright in some US states, while in some places it means that you'll have to argue your name is "(C) Yoyodyne Systems, Inc." Also choose between © and the word "Copyright" as listing both can lead to nuisance arguments like "he copyrighted the copyright" which won't cause a case to fail, but will cause your lawyers to bill you more to state the obvious. – Edwin Buck Feb 04 '19 at 19:30
  • @EdwinBuck do you mean remove (C) or replace it with ©? – Phani Rithvij Dec 19 '20 at 07:08
  • 1
    @PhaniRithvij Always remove (C). Either use "copyright" or ©. If you type out the word "copyright" then you don't need © (that's like saying "copyright copyright"). (C) doesn't mean anything legally, outside of a few USA states (it is not even recognized as a symbol on the national USA level, and it is not recognized internationally). – Edwin Buck Dec 19 '20 at 15:25
13

As per the related question on SO, this Creative Commons license looks relevant to you:

http://creativecommons.org/licenses/by-nc-nd/3.0/

[Note I originally mentioned the SO question as a comment above, but I'm adding as an answer to give it a bit more visibility, as it pretty much does answer your question]

Steve
  • 5,264
  • 1
  • 21
  • 27
  • 22
    I've heard from other people and Creative Commons own FAQ that it shouldn't be used for software. Which sucks because its actually a really nice license – TheLQ Apr 14 '11 at 20:46
  • 1
    How annoying, I was not aware of that. – Steve Apr 15 '11 at 08:04
  • 4
    The reason for not using CC licenses for software is that (1) they aren't generally compatible with the GPL, which makes using CC-licensed free software a little tricky and (2) they don't require sharing of source code on distribution, which is especially problematic for "share-alike" licenses . In this case, however, neither problem would be an actual issue, as neither of those is desired. – Jules May 16 '16 at 20:32
  • 9
    The Creative Commons licenses permit at least sharing of licensed material, which is not what you want with proprietary software. – Paul-Sebastian Manole Feb 23 '17 at 09:52
  • @TheLQ The only problem of the CC is that it doesn't distinguish between source code and compiled code. There is nothing wrong with applying CC to software but then you need to specify if it applies to the source code, to the compiled code, or to both. And if not to both, which license does apply to the other one? Also concepts like "linking against" is unknown to music, images or videos, so CC will not contain any rules regarding this (compare GPL vs LGPL). – Mecki Mar 30 '19 at 18:52