# Yasnocore Voice public_html hardening
Options -Indexes

<IfModule mod_alias.c>
  RedirectMatch 403 ^/admin/storage(?:/|$)
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule "(^|/)\.(?!well-known(?:/|$))" - [F,L]
  RewriteRule "^admin/storage(?:/|$)" - [F,L,NC]
  RewriteRule "(^|/).+\.(?:sql|zip|log|bak|old|dist|pid|lock|ini|env|pem|key|py|sh)$" - [F,L,NC]
</IfModule>
