# Uploaded ticket attachments: never execute, never render as a web page.
# Scripts are not run, and browsers download files instead of displaying them (stops stored HTML/SVG XSS).

# Do not run anything as a script here
<IfModule mod_php.c>
    php_flag engine off
</IfModule>
<IfModule mod_php7.c>
    php_flag engine off
</IfModule>
<IfModule mod_php8.c>
    php_flag engine off
</IfModule>
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .phps .pht .shtml .cgi .pl .py
RemoveType .php .phtml .php3 .php4 .php5 .php7 .phps .pht .shtml

# Serve everything as a download, not as a page the browser will render/run
<IfModule mod_headers.c>
    Header set Content-Disposition "attachment"
    Header set X-Content-Type-Options "nosniff"
    Header set Content-Security-Policy "default-src 'none'; sandbox"
</IfModule>
