# ============================================================
# Infonesia ? Upload Folder Security
# ============================================================

# Izinkan akses ke file media saja
<FilesMatch "\.(jpg|jpeg|png|gif|webp|svg|bmp|ico|mp4|webm|mp3|wav|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|csv)$">
    Require all granted
</FilesMatch>

# Blokir eksekusi PHP untuk keamanan
<FilesMatch "\.(php|phtml|php3|php4|php5|php7|phps)$">
    Require all denied
</FilesMatch>

# Blokir file tersembunyi
<FilesMatch "^\.">
    Require all denied
</FilesMatch>

# Disable directory listing
Options -Indexes

# Prevent script execution
AddType text/plain .php .phtml .php3 .php4 .php5 .php7 .phps