Discussion Locked

Hiding Javascript / CSS on clients PC

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

The below code copies the myjs.js file onto the clients internet temp folder.

Is there any way by which I can avoid this? Basically I wanthide the code of CSS & Javascript.

7 replies

by nikki96

You can't hide it. The browser has to be able to see it. If the browser can see it, so can the user. The best you can do is obfuscate it, but pretty much anyone who could understand the code in the first place can go to the 'net and run it through one of the many deobfuscation tools out there.
There is no way to completely hide your code. I have yet to find one I couldn't crack, despite claims to the contrary. See usenet group comp.lang.javascript for more info on obfuscation.

by ananthap

If you really want to hide your original (REALly?) work, do try the following.

(1) Write it as an applet or active control.
(2) Tie up with a web site hoster to host you page
(3) Have the URL point to it.

end.

by highwingers_2000

if you Go with the Server side Technology such as ASP, PHP and Set it to No-Cache in your code then maybe you can avoid this issuse otherwise its not possible just VIA javaScript.

This discussion is closed to new replies.