Ok, this is not meant to be a presales thread or anything but this is what I wanted to know. I've got some code which executes something which I know will be extremely popular to many people. Because essentially it's a piece of code which anyone could then easily resell, in what way do I go around protecting this code should I wish to sell it? Can I turn it into a piece of software or do I have to host it on a server and potentially charge people per each request they send (that's assuming I can get it to execute the code from a server anyway)? Personally I've got the code saved as an address in a bookmark tab and just hit it every time i want it to run but want to know the best way I could sell/distribute it to others without them seeing the code themselves. Thoughts?