mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Update gen_badbots
Added plus char to the regex for escaping user-agent strings.
This commit is contained in:
parent
835b3ff483
commit
03460d5ed0
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ done \
|
|||
| grep -h -B4 '<td class="smallcell" nowrap>S </td>'\
|
||||
| sed -e 's/ //g' \
|
||||
| awk '/^--/{getline; gsub(" ",""); print $0}' \
|
||||
| sed -e 's/\([.\:|()]\)/\\\1/g' \
|
||||
| sed -e 's/\([.\:|()+]\)/\\\1/g' \
|
||||
| uniq \
|
||||
| tr '\n' '|' \
|
||||
| sed -e 's/|$//g'
|
||||
|
|
|
|||
Loading…
Reference in a new issue