homepage Welcome to WebmasterWorld Guest from 54.166.66.204
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




msg:1520747
 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




msg:1520748
 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




msg:1520749
 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