# Only the following file extensions are allowed (jpg,jpeg,php,gif,pdf,gz) Order Allow,Deny Deny from all <FilesMatch "\.([Jj][Pp][Ee]?[Gg]?|[Pp][Nn][Gg]|[Gg][Ii][Ff]|[Gg][Zz]|[Pp][Dd][Ff])$"> Allow from all </FilesMatch>
This will restrict the excution/access of files uploaded by any hacker.