View Source of Web Page

141
7
03-06-2018 01:07 PM
jaykapalczynski
Frequent Contributor

Is there a way to hide the JS pages in a web app when it is written in something like Notepad++?  I assume the only way would to use a proper coding environment such as visual studio and properly compiled into a web app?  

Any ideas?

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Jay,

  Actually NO, JS is a non-compiled language so the best opportunity you have is to minify/ugilfy your JS code using a plugin.

0 Kudos
jaykapalczynski
Frequent Contributor

So I would have to use C++ or some other language....what would accomplish this?

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor
Yes you would have to use some language that is compiled.


0 Kudos
SteveCole
Frequent Contributor

You might try googling "obfuscate code javascript" and see if anything there might meet your needs. There are some paid options but also some free options. I haven't used them, though. Of course, the largest downside will be a whole new layer of complexity & overhead for your projects & maintaining them..

EDIT: Nice link about obfuscating code & some of the pros/cons about it

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Just understand that obfuscating code is by no means securing the code. It makes the code less human readable but and JS programmer worth their weight in salt can still interpret that code and use it.

SteveCole
Frequent Contributor

I'm aware of that and precisely why I added the link.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Steve,


  I figured you were aware of that. That comment was more for Jay.

0 Kudos