Protecting javascript source code

I created an application that contains a java script that I want to be safe. I know obfuscate is a good idea for protecting code. But it can be easily decoded. can anyone suggest any method with which to protect part or all of the java script code.

+4
source share
1 answer

Minimize your code first, then obfuscate it so that everything you can really do.

Someone can take and run your code, but they will not be able to understand it enough to configure it, because variables and functions will be called as a, b, cif you reduce it.

, , document.href === 'mysite', , ,

Ajax, eval it, , script , , .

, , .

+3

Source: https://habr.com/ru/post/1526482/


All Articles