Skip to content Skip to sidebar Skip to footer

How Can I Hide My Javascript Source In Browser?

I'm quite new to Angular. I've done a lot of things with it. Built an internal website in my organization. When I inspect regular web pages with chrome dev tools, I generally can't

Solution 1:

There is no way you can hide your script from client.

Solution 2:

You could obfuscate it a lot, making each function dependant on another, building a massive "web" of functions that all depend on each other, but that would also make the code really REALLY messy for yourself. The best thing you could do is just put a license in your script, using /* */ and that will atleast prevent most buisnesses from stealing the code.

Solution 3:

Javascript files are downloaded to the client so there is not much you can do.

You can try to obfuscate javascript but it's mostly a waste of time IMO

Solution 4:

There is no way to do this. At best you can compress your JavaScript to make is less readable but at the end of the day if someone want's access to your code they can get it. That said, this is true for most programming language now a days. It's fairly easy to get the code for apps written in Java, C#, VB, and Managed C++.

Post a Comment for "How Can I Hide My Javascript Source In Browser?"