Forum Moderators: open
<SCRIPT language="JavaScript" type="text/javascript" src="http://www.somesite.com/java.js"></script>
However, I would like to prevent any user from downloading this file and viewing
the content. I have gone to some sites that have prevented me from downloading their
JavaScript file? How are they doing it? Also, is there away around it?
Does it have to the permissions assigned to the directory?
Some sites might do silly attempts to block the file, and it might work for non-savvy users, but there is no way to stop it.
<edit>sp</edit>
[edited by: bcc1234 at 7:30 pm (utc) on Mar. 2, 2003]
Another part of the browser then takes those files, reads them, and displays them on the screen. Since the files are stored on the users hard drive, anyone can just go to that directory and look at them from there. There is no way to stop this.
[msdn.microsoft.com...]
Mac
[edited by: korkus2000 at 4:03 pm (utc) on Mar. 3, 2003]
[edit reason] Fixed Link [/edit]
On ASP pages, the ASP code is encoded, but the client side script does not. Unless I'm doing something wrong.....
Did anyone else notice this?