# Keamanan folder peserta
# Mencegah akses langsung ke file PHP
<Files "*.php">
    Order allow,deny
    Deny from all
</Files>

# Mencegah eksekusi script
<FilesMatch "\.(php|php3|php4|php5|phtml|pl|py|jsp|asp|sh|cgi)$">
    Order allow,deny
    Deny from all
</FilesMatch>

# Hanya izinkan akses ke file gambar
<FilesMatch "\.(jpg|jpeg|png|gif)$">
    Order allow,deny
    Allow from all
</FilesMatch>

# Mencegah directory listing
Options -Indexes

# Mencegah akses ke file tersembunyi
<Files ".*">
    Order allow,deny
    Deny from all
</Files> 