# Growzy Connect — Apache hardening
Options -Indexes

# Never expose configuration, database dumps, logs or internals.
<FilesMatch "(^config\.php$|\.sql$|\.log$|\.lock$|\.md$|\.zip$|\.bak$)">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

RedirectMatch 404 ^/database/
RedirectMatch 404 ^/includes/
RedirectMatch 404 ^/storage/
RedirectMatch 404 ^/cron/

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css application/javascript
</IfModule>
