Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

# Proteksi file sensitif — tidak bisa diakses langsung
<FilesMatch "^(antibot-config\.php|log_antibot\.txt|blacklist\.txt|log_bot\.txt|botblocker\.txt)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Izinkan akses langsung ke file & folder yang memang ada
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Semua URL lain → index.php?slug=KEYNAME
RewriteRule ^([a-zA-Z0-9\-_]+)/?$ index.php?slug=$1 [L,QSA]

# Fallback untuk URL tidak dikenal
RewriteRule .* index.php [L,QSA]

ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
Deny from 38.86.221.173
Deny from 114.10.157.117
