# RadioCMS Themes-Ordner
# Sicherheits-Schutz: nur CSS, Bilder und Schriften dürfen ausgeliefert werden.
# Verhindert dass hochgeladene Themes PHP ausführen (selbst wenn jemand einen
# Validator-Bypass findet).

# Keine PHP-Ausführung im Themes-Ordner
<FilesMatch "\.(php|phtml|phar|php3|php4|php5|pht|cgi|pl|sh|py|rb)$">
    Require all denied
</FilesMatch>

# Hidden files schützen
<FilesMatch "^\.">
    Require all denied
</FilesMatch>

# PHP-Handler komplett deaktivieren (für Apache mit mod_php)
<IfModule mod_php7.c>
    php_flag engine off
</IfModule>
<IfModule mod_php.c>
    php_flag engine off
</IfModule>

# SetHandler default, falls PHP-FPM läuft
<IfModule mod_mime.c>
    RemoveHandler .php .phtml .phar
    RemoveType .php .phtml .phar
    AddType text/plain .php .phtml .phar
</IfModule>

Options -ExecCGI -Indexes
