This commit is contained in:
Your Name 2024-09-25 22:29:19 -06:00
parent 15b89287c5
commit 6b16af087e

View File

@ -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"