02-26-2008, 11:53 PM
|
#6 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 166
Thanks: 0
|
Quote:
Originally Posted by Nor
I want to hide js from being viewed directly..
|
That's impossible since the JS is loaded in the page. Best way is to obfuscate the code. For example this javascript file from Google Maps. It would take a very long time to figure it out that code.
Sending the people to a 403 page when accessing the javascript will break your page IIRC. The browser sends the request for the javascript page not the server so when someone tries to load the page the request for the javascript will return a 403.
__________________
Eric
|
|
|
|