I'm wondering what experience people have with .js files and security issues. Is using .js files as opposed to leaving the script in the html files a good way to hide one's script?
I tried downloading someone else's .js file by looking at the source of the webpage, looking at the <script> tag, and typing the proper path into my address bar. It didn't seem to work. That gave me hope that .js files are hidden from the clients; but in searching through all the threads of this forum, I found only one thread that touched on this issue, and it seemed to indicate that clients COULD view .js files.
My first question is: to what extent are .js files safe from general users?
My second question is: what is the best way to hide client-side script from general users?
If server-side script is the best answer to this problem, then it'll have to do... but I'd like to know where client-side script security ends and server-side script security begins.
Thanks.
-Christopher
I tried downloading someone else's .js file by looking at the source of the webpage, looking at the <script> tag, and typing the proper path into my address bar. It didn't seem to work. That gave me hope that .js files are hidden from the clients; but in searching through all the threads of this forum, I found only one thread that touched on this issue, and it seemed to indicate that clients COULD view .js files.
My first question is: to what extent are .js files safe from general users?
My second question is: what is the best way to hide client-side script from general users?
If server-side script is the best answer to this problem, then it'll have to do... but I'd like to know where client-side script security ends and server-side script security begins.
Thanks.
-Christopher