This is just a general question about jQuery...

Suppose someone made a jQuery plugin and sells it in CodeCanyon...However he used that plugin in his website and when you go to inspect element(view source) there is the code of the plugin...

Someone can just steal it from there... Is there any solution to this?

有帮助吗?

解决方案

jQuery is open sourced under the MIT license, and their page here reads

The MIT License is simple and easy to understand and it places almost no restrictions on what you can do with a jQuery project.

Also, it is impossible to hide client-side Javascript from the user, as they can see whatever they want. However, you can attempt to obfuscate or uglify it to dissuade users from stealing it

其他提示

There is no 100%-secure way.
a) Searching for your script in the net and sueing people who didn´t pay for it
and b) Use an obfuscator to make stealing (and adapting to other sites) harder

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top