# Matikan directory listing
Options -Indexes

# Blokir bot kasar
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (bot|crawl|spider|scan|ahrefs|semrush|wget|curl) [NC]
RewriteRule .* - [F,L]

# Cache untuk kurangi proses PHP
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 hour"
</IfModule>

# Cache header tambahan
<IfModule mod_headers.c>
    Header set Cache-Control "public, max-age=3600"
</IfModule>