문제

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