Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L,QSA]
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    Header always set Referrer-Policy "strict-origin-when-cross-origin"
    Header always set X-Frame-Options "SAMEORIGIN"
    Header always set Permissions-Policy "geolocation=(self), camera=(), microphone=()"
    Header always set Content-Security-Policy "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://aladin.cds.unistra.fr; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://aladin.cds.unistra.fr; img-src 'self' data: blob: https:; connect-src 'self' https://*.cds.unistra.fr https://gea.esac.esa.int; font-src 'self' data: https://aladin.cds.unistra.fr; worker-src 'self' blob:; frame-src 'self' https://eyes.nasa.gov; object-src 'none'; base-uri 'self'; form-action 'self'"
</IfModule>

<FilesMatch "^(config\.php|.*\.json|.*\.md|.*\.sqlite)$">
    Require all denied
</FilesMatch>
