新增第四层安全防护:全局限流20次/分钟/IP,白名单与带secret的内部调用豁免,超限挂起连接不返回数据

This commit is contained in:
ypsdf1
2026-09-30 15:56:16 +08:00
parent 4c2e075667
commit b6983f99e4
9 changed files with 242 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
<?php
require_once __DIR__ . '/security.php'; // 第四层:全局限流(2026-09-30)
// ★ 强制缓存失效:用文件修改时间作为版本号
// 每次修改player.php后,文件时间戳变化 → URL不同 → 浏览器必须获取新内容
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');