View Full Version : Allowing certain file extensions only

04-29-2010, 03:06 PM
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.

04-29-2010, 03:15 PM
<FilesMatch "*.(html|php)">
Order allow, deny
Allow from none
Deny from all

did some reading anyone want to tell me if this is a good way or doing it and if it is correct?