Hide javascript / jquery scripts from html page?

How to hide javascript / jquery scripts from html page (from the view source when right clicking)? please suggest to do this.

Thanks.

+3
source share
6 answers

It is best to either remove the script tags immediately after loading the tree tree, or dynamically create a script tag in your javascript.

Anyway, if someone wants to use a web developer tool or Firebug, they will still see javascript. If it is in the browser, it will be visible.

One of the advantages of dynamically creating a script tag is that you will not load javascript if javascript is disabled.

javascript, html, script.

: <script src='...' />, javascript, URL- javascript, d/l javascript. script, , html firebug, , Firebug , View Source.

, , Firebug javascript, .

, , , , javascript ajax-, "exec" . , -.

+8

, JavaScript . .

, / .

:

, JavaScript , , obfuscation , , , .

+9

. - , , .

, , , , Firefox 100k download (firebug), .

+4

, . , , , curl JavaScript .

JavaScript minifier obfuscator, , . A minifier - , . , , , .

+4

Firebug , dom, .

? javascript? . , , , , , , javascript. .

javascript... javascript. langage (java-, flash, activex) .. ( , javascript).

+3

.

If you just want to hide your business logic from the user, rather than manipulating the html controls on the client side, you can use server-side programming with ajax.

+1
source

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


All Articles