# LabBahasa — konfigurasi root (.htaccess)
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
</IfModule>

# Lindungi file sensitif
<FilesMatch "\.(sql|md|json|lock)$">
  Require all denied
</FilesMatch>

# Blokir akses langsung ke file konfigurasi
<Files "config.php">
  Require all denied
</Files>

# Batasi ukuran unggahan (sesuaikan bila perlu) — gunakan IfModule, hindari php_flag
<IfModule mod_php8.c>
  php_value upload_max_filesize 8M
  php_value post_max_size 10M
</IfModule>
<IfModule mod_php7.c>
  php_value upload_max_filesize 8M
  php_value post_max_size 10M
</IfModule>

# UTF-8 default
AddDefaultCharset UTF-8
