views:

335

answers:

3

Are there any ready-made license blocks for proprietary code?

I have some part-completed code. Before I send it to anyone, I'd like to add a license block to the top of each file. I can find plenty of blocks for liberal licenses such as the MPL boilerplate, but I'd like something a little more restrictive, at least for now.

Basically, I want to say "this is copyright me, it's mine, don't you dare fiddle". Then, once I'm happy I could change it something more liberal later.

+1  A: 

What's the point of sending it to people if they aren't allowed to do anything with it? This may sound a little harsh, but I don't really see the point of a license like this. If you are letting people read it, they can, at the very least, gain knowledge from it, and reuse your ideas.

A simple copyright message would probably suffice. The reason you only see licenses for more liberal licensing, is that they grant rights above and beyond that which is granted by copyright. Standard copyright gives just what you are looking for. You maintain ownership, and others are not allowed to reuse or copy your works.

Kibbee
That is argumentative and has nothing to do with his real issue. He might want consulting on the code and therefore needs a good license to protect him.
Filip Ekberg
You point out a very good part, which i also adressed in my post, he needs a patent to protect the idea. But code can always be written differently.
Filip Ekberg
It's a fair poin . One example would be Javascript in a web page where there is no choice but to share the code. Nevertheless, it is still nice to assert my copyright even though it is implicit and in practice there is nothing to prevent copying.
Mat
+2  A: 

The License you are locking for is called, Copyright ;) To help you find a real license though: http://en.wikipedia.org/wiki/Software_license and http://www.insideria.com/2008/07/open-source-code-licenses-revi.html and http://www.gnu.org/licenses/

I would read that thoroughly!

But remember, you always own your code, no matter what. You just need to be able, to prove that you wrote it and not someone else.

However, remember that a "concept" needs more than a licenese to be protected.

Filip Ekberg
Exactly -- The DEFAULT "license", if you don't include any license at all, is that the owner owns it, and don't anyone dare fiddle or redistribute or anything. That, as Filip says, is what Copyright is.
DanM
You don't always own your own code - especially if you're employed or contracted to write it.
Jordan L. Walbesser
+5  A: 

It depends on the situation, but I think this sounds more like a time when you would want a non-disclosure agreement signed before sharing the code. Copyright only protects usage of the code, not the ideas.

As far as protecting the code, a simple copyright is all that is needed.

Copyright (c) 2009 Your_Name_here. All Rights Reserved.
chills42
Ah! NDA is a good idea. But that is something that you "rarely" get just "random" people to sign :) I know im always a little scared of signing those NDAs
Filip Ekberg
Me too, but if it is properly written you can make it quite clear what is/isn't included.
chills42
Duh, how simple! I was reading far too much into all these complicated license blocks for the exact reasons you've stated.
Mat