# DNDGamersUK LAN Hub — Apache / IONOS
Options -Indexes
DirectoryIndex index.php

# Block private folders even if their own .htaccess is missing
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^(data|logs|includes)(/|$) - [F,L]
</IfModule>

# Never serve data/backup style files directly
<FilesMatch "\.(json|log|lock|bak|md)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

<IfModule mod_headers.c>
  Header set X-Content-Type-Options "nosniff"
  Header set Referrer-Policy "same-origin"
</IfModule>

# Cache fonts/images, never cache PHP output
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType font/woff2 "access plus 1 year"
  ExpiresByType image/webp "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 1 day"
  ExpiresByType application/javascript "access plus 1 day"
</IfModule>
