zsanjin-p / frps-log-ip-ban

ban掉frps的日志文件非法ip/Ban IP addresses identified as illegal or malicious from the FRP server log.
3 stars 1 forks source link

ban #1

Open Liuyilin-ai opened 2 weeks ago

Liuyilin-ai commented 2 weeks ago

我要永久封禁的话,应该改哪里

zsanjin-p commented 2 weeks ago

用windows的话把banip.ps1大概第六行$thresholdDate = (Get-Date).AddDays(-30)改为$thresholdDate = (Get-Date).AddDays(-99999)或者$thresholdDate = (Get-Date).AddDays(-30)改为$thresholdDate = (Get-Date).AddDays(99999)

用宝塔管理linux的话把banip.py大概第六行threshold_date = (datetime.datetime.now() - datetime.timedelta(days=30)).strftime('%Y-%m-%d')改为threshold_date = (datetime.datetime.now() - datetime.timedelta(days=99999)).strftime('%Y-%m-%d')