0

It is possible to hide source code using javascript.

We use JavaScript DOM to change in the source code add new tags l, delete tags.so iit is possible to hide some code using javascript.

15th May 2019, 1:58 PM
Pratik Mohite
Pratik Mohite - avatar
1 Resposta
+ 1
Html css and js is open code and run by browser to hide the code you should be using node.js or java. Also I found a good explanation for you one stackexchange.com: there is no way to protect javascript intended to run in a browser from a determined viewer. If the browser can run it, then any determined person can view/run it also. But, if you put your javascript in an external javascript file that is included with: <script type="text/javascript" src="http://mydomain.com/xxxx.js"></script> tags, then the javascript code won't be immediately visible with the View Source command - only the script tag itself will be visible that way. That doesn't mean that someone can't just load that external javascript file to see it, but you did ask how to keep it out of the browser's View Source command and this will do it.
15th May 2019, 3:22 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar