{{define "admin_bans"}} IP黑名单 - MailGo {{template "styles" .}} {{template "navbar" .}}

IP 黑名单

阶段性封禁:第 4 次触发起封禁,30分钟 → 3小时 → 3个月 → 半年(上限)
{{range .rows}} {{end}}
IP 地址 状态 封禁次数 失败次数 原因 到期时间 操作
{{.IPAddress}} {{if .Active}}封禁中 {{else}}已过期{{end}} {{if .BanCount}} {{if gt .BanCount 3}}第{{sub .BanCount 3}}次封禁{{else}}仅计数{{end}} {{else}}—{{end}} {{.FailCount}} {{if .Reason}}{{.Reason}}{{else}}—{{end}} {{.ExpiresAt.Format "2006-01-02 15:04:05"}}{{if not .Active}}(已过期){{end}}
{{if not .rows}}

暂无封禁记录

{{end}}
{{if .totalPages}} {{end}}
{{end}}