Step On How To Hide Javascript Source Code


There’s really no perfect way to absolutely protect
you JavaScript source from a user that is
determined to see it and experienced enough to
know how to go about it. However, I know that you
can make it harder for user to view your javascript
source (hopefully hard enough to discourage the
viewer) .

Some methods include referencing the scripts from
external files…i.e breaking the code into bits and
pieces within separate files which are equally
referencing other files, you can also retrieve some
of the scripts via Ajax calls. Additionally, you can
obfuscate you code to make it unreadable without
hassle.

It’s important to note however that I rarely find it
necessary to make my javascript secret (its not like
I have my database password hardcoded
somewhere within the script). Its mostly about
getting the script to work at optimum performance. 


Thomas
Certified Web designer, Computer/Internet
Enthusiast. I believe in Creativity.
Proudly The CEO Of Primebaze.com.ng
Thomas on EmailThomas on FacebookThomas on InstagramThomas on Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *