# TradeHub - protecoes basicas

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Configuracao e registos nunca sao servidos
<FilesMatch "^(config.*\.php|.*\.log|.*\.json)$">
  Require all denied
</FilesMatch>

# Sem listagem de directorios
Options -Indexes

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