View Full Version : Reading a .js file
I would like to keep someone from reading a .js file. I tried using .htaccess script, thinking that no one could read it, but that is only for hot linking.
Can someone recommend a script that would secure a .js file from being read or viewed.
Not possible, as far as I know. The browser has to be able to read it to interpret it.
if you want some processing logic to not be downloaded to the user's machine then you need to consider a server side scripting language like PHP. Using PHP only the output is sent to the user's machine. JavaScript is client side scripting so the whole script is always downloaded to the user's machine.
I was afraid of that. I am only starting to learn PHP now. It will be while before I am able to script something like that. Thanks all!
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.