The best way: put a licence in it ;).
EDIT: Well, if you want more information you can try to search on the forum for “protect assets”.