# Only api.php, admin.php and index.php are meant to be opened from the web.
Options -Indexes
<IfModule mod_authz_core.c>
  <FilesMatch "^(config\.php|config\.sample\.php|lib\.php|README\.md)$">
    Require all denied
  </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
  <FilesMatch "^(config\.php|config\.sample\.php|lib\.php|README\.md)$">
    Order allow,deny
    Deny from all
  </FilesMatch>
</IfModule>
RedirectMatch 404 ^/(.*/)?(data|tools)(/|$)
