# Protect storage directory from web access
RewriteRule ^storage/ - [F,L]

# Protect the Dashboard's local dashboard-data (runtime state + indexed knowledge)
RewriteRule ^dashboard-data/ - [F,L]

# Deny hidden files (except .htaccess itself)
RewriteRule (^\.htaccess$|^\.) - [F,L]

# Deny config/credential files
RewriteRule \.(json|ini|env|log)$ - [F,L]

# Security headers
<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set X-Frame-Options "DENY"
    Header set X-XSS-Protection "1; mode=block"
    Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

ServerSignature Off

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php84” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php84 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
