# 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>

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