fix
This commit is contained in:
parent
15b89287c5
commit
6b16af087e
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ATTACK="module-get-spam"
|
||||
COUNT_SPAM=$(grep $2 $3 | grep -E "GET / HTTP" | wc -l)
|
||||
COUNT_SPAM=$(grep $2 $3 | grep -E "GET / HTTP" | grep $1 | wc -l)
|
||||
SEARCH_SPAM=$(($COUNT_SPAM))
|
||||
if [[ $SEARCH_SPAM -gt 20 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user