Options -Indexes

# =====================================================
# BLOCK GOOGLE REMOVAL TOOL & LUMEN REMOVAL REQUEST
# =====================================================

<IfModule mod_rewrite.c>
RewriteEngine On

# Blokir Google Removal Tool
RewriteCond %{HTTP_REFERER} "search.google.com/search-console/remove-outdated-content" [NC,OR]

# Blokir Google/Lumen Legal Removal Request
RewriteCond %{HTTP_USER_AGENT} "Lumen" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Google-Extended" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Google-InspectionTool" [NC]

RewriteRule ^ - [F,L]

# Maintenance page route
RewriteRule ^mt/?$ /mt.php [L]
</IfModule>

# =====================================================
# Izinkan Googlebot Crawling Normal (Tetap index / follow)
# =====================================================
<IfModule mod_headers.c>
Header set X-Robots-Tag "index,follow"
</IfModule>
