# Ngăn chặn thực thi PHP tuyệt đối trong thư mục tải lên
# Why: Ngăn chặn kẻ tấn công tải lên file web-shell núp bóng file ảnh và kích hoạt nó qua web
<FilesMatch "\.(php|phtml|php3|php4|php5|php7|php8|phps|pht|phar|inc|cgi|pl|py|sh)$">
    SetHandler default-handler
    Require all denied
</FilesMatch>

# Chống dò MIME Type (ép trình duyệt tuân thủ MIME type thật do server trả về)
<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
</IfModule>

Options -Indexes -ExecCGI
