Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q442 How can I hide the JavaScript source code from "view source" function of the browser?

You are here: irt.org | FAQ | JavaScript | General | Q442 [ previous next ]

There is no way to hide HTML or JavaScript from a determined person.

If the script in in a .js file, the script can be read by loading it directly and it can be downloaded by writing an HREF for it.

If the script comes from a CGI or is playing hard to get, a telnet to the server can sort that out.

There are however ways to obfuscate the script so it is difficult / impossible / not worth trying to read.

The following two shareware programs attempt to scramble the variable names and format the code

Jammer at http://www.geocities.com/SiliconValley/4274/jammer.htm.

JMyth at http://www.geocities.com/SiliconValley/Vista/5233/jmyth.htm.

Microsoft are investigating ways and means of encrypting JavaScript source code.

Feedback on 'Q442 How can I hide the JavaScript source code from "view source" function of the browser?'

©2018 Martin Webb