How can I obfuscate (protect) JavaScript? [closed]

Obfuscation: Try YUI Compressor. It’s a very popular tool, built, enhanced and maintained by the Yahoo UI team. You may also use: Google Closure Compiler UglifyJS UPDATE: This question was originally asked on 2008, and The mentioned technologies are deprecated. you can use: terser – more information in web.dev. Private String Data: Keeping string values … Read more

How to secure javascript code from being run on other domain (stolen) ? need more ideas

No matter how complex you make your code, it can always be read, if necessary with abstract interpretation, i.e. automatically capturing the essence of your code. Code without knowledge of internals, variable names (I assume you’re already using minimization, for example with the YUI compressor), documentation, support, and generalization is worthless for anyone else. If … Read more