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
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Allowing certain file extensions only

    hey guys i was wondering how i would go about only allowing the file extensions that are .html & .php?

    i seen examples but there all to denie file types and that doesnt seem efficient.

  • #2
    New Coder
    Join Date
    Aug 2009
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Code:
    <FilesMatch "*.(html|php)">
    Order allow, deny
    Allow from none
    Deny from all
    </FilesMatch>
    did some reading anyone want to tell me if this is a good way or doing it and if it is correct?


  •  

    Posting Permissions

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