views:

78

answers:

3

Hi,

Wanted to know what are the steps involved in getting ones code licensed. Working on a freelancing PHP application and want to prevent the client from making any modications in the source code. Any suggestions about which licensing will be the best is appreciated.

EDIT : In order to get my code licensed I just have to pick up any of the licenses and just include it in my code thats it ?? Dont have to register with something ?

A: 

I know of no common licence that would make the source code public, but forbid its modification. How about creating a custom licence? You could always take an existing licence text, such as GPL or whatever, and modify the parts you find inconvenient for you.

mingos
The GPL is protected, so you're not allowed to base your own license on it.
Georg
You are wrong: only the GPL preamble text is protected, not the entire licence text. FSF explicitly allows to create GPL-derived licences as long as you don't copy the preamble. http://www.fsf.org/licensing/licenses/gpl-faq.html#ModifyGPL
mingos
+2  A: 
  1. Pick a license
  2. Include it in your distribution
  3. Ensure that your contract makes it clear the client is buying a license and not your labour
  4. Ensure your client understands that part of the contract

Update in response to edit:

No. A license is just an agreement between the copyright holder of the code and the user. You don't need a third party involved.

David Dorward
+2  A: 

By default, copyright law prevents any one from modifying, distributing and/or using your code unless you give them a license to do so (or assign the copyright to them). So the only thing you need to do is include what you do allow them to do in the contract (the license) and make it explicit that you retain the copyright.

You don't have to put the license in the code (in fact it makes little sense unless you plan it to be distributed, modified etc.) - but you do want to put a copyright notice there.

Licenses don't have to be registered, it is possible to register for copyright, but it is usually not necessary.

Also note that many existing licenses are copyrighted and subject to similar limitations (e.g. can't be modified).

It would be best if you use an actual lawyer to work on your contract.

Ofir