# AZTO.love pre-registration, Apache / cPanel rules

Options -Indexes
DirectoryIndex index.html

# Force HTTPS (remove this block if your SSL certificate is not active yet)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP:X-Forwarded-Proto} !=https
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Hide dotfiles, README and backups
<FilesMatch "(^\.|\.(md|bak|tmp|lock|log)$)">
  Require all denied
</FilesMatch>

<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"
</IfModule>
