# 头像上传目录安全配置：禁止目录列表，禁止执行 PHP 等脚本
Options -Indexes

<IfModule mod_authz_core.c>
    # Apache 2.4+
    <FilesMatch "\.(php|phtml|php3|php4|php5|php7|phar|cgi|pl|py)$">
        Require all denied
    </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
    # Apache 2.2
    <FilesMatch "\.(php|phtml|php3|php4|php5|php7|phar|cgi|pl|py)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
