Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By SpidersWebHelp

Thread: htaccess and wildcard

  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    91
    Thanks
    2
    Thanked 0 Times in 0 Posts

    htaccess and wildcard

    Hi All,

    In the htaccess code used to deny all, is it possible to write it as below using a wildcard * to block all files ending in .js
    so I don't have to list each and every one.

    Code:
    <Files *.js>
    order allow,deny
    deny from all
    </Files>

    Martin.
    issam chahmi likes this.

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    360
    Thanks
    0
    Thanked 17 Times in 17 Posts
    <FilesMatch>:
    Code:
    <FilesMatch ".\.js$">
        Order Allow,Deny
        Deny from all
    </FilesMatch>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •