homepage Welcome to WebmasterWorld Guest from 23.23.8.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Deny directory access but allow execution
need help with a small .htaccess problem
bluemi

10+ Year Member



 
Msg#: 4865 posted 3:17 pm on Oct 16, 2005 (gmt 0)

I guess this is an easy one for .htaccess gurus, unfortunately not for me :-(

I have a directory with a Javascript that is called from some of my pages. How do I prevent people from downloading the script to their computers without disallowing my own site to execute this script? Would be most greatful if someone could post the necessary .htaccess code.

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4865 posted 5:54 pm on Oct 16, 2005 (gmt 0)

JavaScript is executed client-side -- in the browser.

Therefore, you can't prevent it from being 'downloaded' since that is the only way the browser can execute it.

Jim

bluemi

10+ Year Member



 
Msg#: 4865 posted 6:07 pm on Oct 16, 2005 (gmt 0)

Thanks, Jim!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved