Your work is protected by copyright the moment it’s created, but you can also register with the U.S. Copyright office at http://www.copyright.gov, or with your own country’s office if you are outside of the US. There’s never any guarantee that your work won’t be stolen, but these are some measures that you can take to protect yourself.