# Deny access to all users
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>

# Turn off directory listing
Options -Indexes

# Block PHP files from executing
<FilesMatch "\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Block access to text files
<FilesMatch "\.(txt|log|dat)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Prevent viewing of .htaccess file
<Files .htaccess>
    Order Allow,Deny
    Deny from all
</Files>