# never serve the config, the secrets file, the JSON sources or the sourcing sheet
# (Apache 2.4 syntax with a 2.2 fallback — "Options" is deliberately not used here: hosts that forbid it in .htaccess return 500)
<IfModule mod_authz_core.c>
  <FilesMatch "^(config\.php|\.env)$">
    Require all denied
  </FilesMatch>
  <FilesMatch "(\.(json|log|py)|AMAZON-SOURCING\.txt)$">
    Require all denied
  </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
  <FilesMatch "^(config\.php|\.env)$">
    Order allow,deny
    Deny from all
  </FilesMatch>
  <FilesMatch "(\.(json|log|py)|AMAZON-SOURCING\.txt)$">
    Order allow,deny
    Deny from all
  </FilesMatch>
</IfModule>
# data/ (specs, sourcing sheet, supplier reference photos, screenshots) is build-time only
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^data(/|$) - [F,L]
</IfModule>
<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"
  Header always set X-Robots-Tag "noindex, nofollow, noarchive"
</IfModule>
