文件操作 - nginx-bad-request.conf
返回文件管理
返回主菜单
删除本文件
文件: /etc/fail2ban/filter.d/nginx-bad-request.conf
编辑文件内容
# Fail2Ban filter to match bad requests to nginx # [Definition] # The request often doesn't contain a method, only some encoded garbage # This will also match requests that are entirely empty failregex = ^<HOST> - \S+ \[\] "[^"]*" 400 datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)? ^[^\[]*\[({DATE}) {^LN-BEG} journalmatch = _SYSTEMD_UNIT=nginx.service + _COMM=nginx # Author: Jan Przybylak
修改文件时间
将文件时间修改为当前时间的前一年
删除文件