# 上传目录：禁止执行任何脚本，只允许作为静态图片访问
Options -Indexes -ExecCGI

<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>

<FilesMatch "\.(?i:php|phtml|phar|php3|php4|php5|php7|php8|pl|py|cgi|sh|asp|aspx|jsp|htm|html|shtml)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>

AddType text/plain .php .phtml .phar
