Hi, I am not technical, so please forgive me if I ask a stupid question. I have an idea for a 'product' that would be based upon a Javascript program. I would like to license the code to webmasters and, preferably, have some sort of security capability that would prevent unauthorized use (e.g., could only be used on the domain name that it is licensed for). Is this possible with Javascript?
Not possible. The only thing I can think of is dummy images, but that would only allow you to see which domains use it, and it wouldn't prevent anything. You'd have to compare all domains and email the webmaster or something. Plus it could be super easily bypassed.
you could obfuscate the javascript and do some validity checks in the code. regular users wouldn't be able to "steal" your code. however, determined users will still be able to crack this protection, so, as nico_swd stated before, this is not a commercially feasible idea.
Or you could compile it to a .exe, but that would mean users have to download the .exe to view the site. BP
Yes, good point. A friend also mentioned a browser plugin which would require the same thing. Thanks.