Options -Indexes

<FilesMatch "\.(html|htm|asp|js|ico|swp)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

<Files *.php>
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Files>

<Files index.php>
    Order Allow,Deny
    Allow from all
</Files>
