<FilesMatch "\.(php|inc)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

<FilesMatch "^(config|database|functions|security)\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>