# 本程序不需要伪静态：所有页面都是真实文件地址。
# 这个文件只做基础安全，Nginx 下不生效（也不需要）。

Options -Indexes

<FilesMatch "^(config\.php|config\.sample\.php|README\.md)$">
  Require all denied
</FilesMatch>

# v1.8.2：敏感后缀拒绝（日志/备份/锁/导出一律不外发；runtime/ 另有专属 .htaccess 兜底）
<FilesMatch "\.(log|sql|bak|lock|old|orig|save|swp)$">
  Require all denied
</FilesMatch>

# v1.8.2：runtime/ 目录（备份/升级包/缓存/日志）禁止 Web 访问；
# Nginx 不吃本文件，请在站点配置另加：location ^~ /runtime/ { deny all; }
RedirectMatch 403 (?i)^.*/runtime/

