How to protect my code?

How can one protect source code of front-end web application?

  • By downloading the web site with a web browser, one can see the Javascript. Minified JS can be decoded. How can one protect source code of front-end web application?

  • Answer:

    When it comes right down to it, you can't. But, since the frontend is only half the application, there really shouldn't be a serious problem.

Glenn Anderson at Quora Visit the source

Was this solution helpful to you?

Other answers

Either move the app from the browser to the server or, I suppose, obfuscate it very significantly.

Sam Ismail

The question is pretty much like asking "if I have a t-shirt with a joke on it, how can I wear it without letting people tell the joke to their friends?"The idea of "protecting" source code is a bit weird, anyway.Your first question should be “why do I feel the need to stop people from reading my code?” and if you can’t come up with a good answer, just throw the whole idea away and write good stuff people want to use.

Ben Sinclair

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.