possible not hide external javascript files?

Soldato
Joined
1 Feb 2006
Posts
8,188
hi guys,

had a quick google for this but no joy on what i was looking for - is it possible to make .js files unreadable to a website visitor by setting htaccess permissions without making it stop working? i.e. if a user was to reference the .js file directly the content would not be returned by the browser. Not urgent and im not sure that it is doable but its worth a try.

Thanks
 
Hi, Just had a look at that and the lines i added to the htaccess file blocked my javascript file completely.. I want it to be able to be called from within an HTML page but hidden if accessed directly by typing the url. Is this possible?
 
Thanks for the info - I knew you could hide php files in a secret directory and include them but i guessed that for client side scripts it would be different. Cheers for the link to 'packer'.
 
Back
Top Bottom