Hiding Javascript / CSS on clients PC
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.
Web Development
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.
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.
There are some S/W awailable. Check the below link
http://www.protware.com/demo_e.htm
http://www.share2s.com/protect.html#protect-file
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.
Poster rated this answer.
Poster rated this answer.
This discussion is closed to new replies.
Sort by Trending