暴力破解防护
| 指令 | 语法 | 默认值 |
|---|---|---|
LSBruteForceProtection | On|Off | Off |
LSBruteForceAllowedAttempts | N | 10 |
LSBruteForceWindow | seconds | 300 |
LSBruteForceAction | block|throttle|log | block |
LSBruteForceThrottleDuration | milliseconds | 5000 |
LSBruteForceXForwardedFor | On|Off | Off |
LSBruteForceTrustedProxy | IP/CIDR [IP/CIDR ...] | (无) |
LSBruteForceWhitelist | IP/CIDR [IP/CIDR ...] | (无) |
LSBruteForceProtectPath | /path | (无) |
保护 WordPress 登录
Section titled “保护 WordPress 登录”LSBruteForceProtection OnLSBruteForceAllowedAttempts 5LSBruteForceWindow 600LSBruteForceAction throttleLSBruteForceThrottleDuration 10000LSBruteForceXForwardedFor OnLSBruteForceWhitelist 192.168.1.0/24 10.0.0.0/8LSBruteForceProtectPath /wp-login.php此配置将登录尝试限制为每 10 分钟 5 次,被限流的请求之间有 10 秒的延迟。来自白名单子网的请求不受限制。