# 上传目录里禁止执行任何脚本 —— 没有这条，上传的 .php 就能被直接访问执行。
# 同时兼容 Apache 2.4（Require）与 2.2（Order）。
<FilesMatch "\.(?i:php|php3|php4|php5|php7|phtml|pht|phar|cgi|pl|asp|aspx|jsp|sh|py)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

# 关掉目录列表
Options -Indexes
