i have a javascript file on my server and i am looking for a script i can use to make it so that a user can not just type the address of the javascript file in the address bar and see it.

is it possible to make it so the file can't be viewed alone. i know that can be done with css.