You can also file to register copyright on your work regardless of the licensing model you decide to go with.
But as Mouser pointed out, it's important to have a clear idea of what your goal is.
Basic rule of thumb: if you have any doubts or reservations about
basically giving your code away - DON'T release your source code or script. Period. Because no matter what license you choose, once your code is out there -
it's out there.One other point: Any license you choose is only as good as
your ability to enforce it. And no, the government is not going to help you out with that.
So unless you have the financial resources to go after (i.e. sue) license violators, the law itself is pretty much moot. Software licenses primarily fall under
civil rather than
criminal law. And in civil cases, the people with the deepest pockets almost always win.
Not fair - but that's the way it usually goes in a civil suit.