Files
deskhub/DeskHub-Webseite/uploads/.htaccess
T
2026-10-16 19:12:28 +00:00

20 lines
699 B
ApacheConf

# Verhindert die Ausführung von hochgeladenen Dateien (z.B. falls jemand eine
# .php-Datei mit falscher/umgangener Endungsprüfung hochladen würde).
<FilesMatch "\.(php|php3|php4|php5|php7|php8|phtml|phar|pl|py|cgi|asp|aspx|jsp|sh|bash|exe|htaccess|htpasswd|env|html?|xhtml|shtml|svgz?|xml|js|mjs)$">
Require all denied
</FilesMatch>
<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>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set Content-Security-Policy "default-src 'none'; style-src 'unsafe-inline'; sandbox"
</IfModule>
Options -Indexes