Disallow access to .js files

Discussion in 'Apache' started by raymond222, Aug 23, 2008.

  1. #1
    hello, fellow members

    I've came across a problem recently:

    I'd like to disallow user access to any .js files in the floder with the help of .htaccess

    Anyone know the syntax for that?

    Thanks!
     
    raymond222, Aug 23, 2008 IP
  2. mivent

    mivent Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <Files ~ ".*\.js">
    Order allow,deny
    Deny from all
    </Files>
     
    mivent, Aug 23, 2008 IP