# مجلد الصور المرفوعة: صور فقط، ولا يُسمح بتشغيل أي كود
Options -Indexes -ExecCGI
<IfModule mod_php.c>
  php_flag engine off
</IfModule>
<IfModule mod_php8.c>
  php_flag engine off
</IfModule>
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .php8 .phar .pl .py .cgi .sh
RemoveType .php .phtml .phar
<FilesMatch ".+">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
</FilesMatch>
<FilesMatch "^[a-f0-9]{32}\.(jpg|png|webp|mp4|webm|mov)$">
  <IfModule mod_authz_core.c>
    Require all granted
  </IfModule>
  <IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set Content-Security-Policy "default-src 'none'"
    Header set Cache-Control "public, max-age=2592000"
  </IfModule>
</FilesMatch>
