# CareLite — Apache hardening. Nginx equivalents are in README.md.
Options -Indexes
DirectoryIndex index.php

<FilesMatch "\.(sql|md|log|sample\.php)$">
  Require all denied
</FilesMatch>

RedirectMatch 403 ^/(config|lib|ui|bin|sql|storage)/.*$

<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
  Header always set X-Frame-Options "SAMEORIGIN"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
