How to prevent .js files from being viewed or downloaded?

Is there any way to prevent .js files from being viewed or downloaded?

When someone types in the url. For example: http://www.yoursite.com/path1/yourjavascript.js then he or she can save the file on his/her computer and open it up and see the code.

Is there any way to prevent this from occuring?


Im trying to accomplish this without compromising the usability of the javascript.

Anyone?


Thanks in advance How to prevent .js files from being viewed or downloaded?

 

 

 

 

Top