General discussion

Locked

Hiding Javascript / CSS on clients PC

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

<SCRIPT LANGUAGE="JavaScript" SRC="../javascript/myjs.js">
<!--
<!-- end script -->
</SCRIPT>

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

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Hiding Javascript / CSS on clients PC

by nikki96 In reply to Hiding Javascript / CSS o ...

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.

Collapse -

by NetMan_OVO In reply to Hiding Javascript / CSS o ...

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

Collapse -

Hiding Javascript / CSS on clients PC

by ananthap In reply to Hiding Javascript / CSS o ...

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.

Collapse -

by NetMan_OVO In reply to Hiding Javascript / CSS o ...

Poster rated this answer.

Collapse -

by highwingers_2000 In reply to Hiding Javascript / CSS o ...

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.

Collapse -

by NetMan_OVO In reply to

Poster rated this answer.

Collapse -

by NetMan_OVO In reply to Hiding Javascript / CSS o ...

This question was closed by the author

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums