# Files in uploads are public static assets and must never be executable.
Options -Indexes -ExecCGI
RemoveHandler .php .php3 .php4 .php5 .php7 .php8 .phtml .phar .cgi .pl .py .rb .sh
RemoveType .php .php3 .php4 .php5 .php7 .php8 .phtml .phar .cgi .pl .py .rb .sh
Require all denied
Order allow,deny
Deny from all
Header set Content-Security-Policy "sandbox; default-src 'none'; style-src 'unsafe-inline'"
Header set Content-Disposition "attachment"
Header set X-Content-Type-Options "nosniff"
#Header set Cache-Control "max-age=7200, must-revalidate"
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG|webp|WEBP|bmp|BMP) /inc/thumb.php [QSA,L]