2

Possible Duplicate:
Is it possible to hide or scramble/obfuscate the javascript code of a webpage?

Is there any way to hide the view of JavaScript code from the view page source action?

Community
  • 1
  • 1

4 Answers4

8

No. You can obfuscate it a lot, though.

Juho Vepsäläinen
  • 26,573
  • 12
  • 79
  • 105
4

No. It is the same with any content on the web. If you can see or hear it, you can download it.

Travis J
  • 81,153
  • 41
  • 202
  • 273
1

No.

If you have sensitive algorithms or implementations, run them on the server and access them through Ajax or at the time the page is requested. Keep the javascript on your page UI-centric.

Moishe Lettvin
  • 8,462
  • 1
  • 26
  • 40
0

You can hide your js code to unexpert eyes using obfuscate techniques: JS obfuscate but an expert js coder can reverse engineering and understand it

Community
  • 1
  • 1
Alberto
  • 2,881
  • 7
  • 35
  • 66