fix
This commit is contained in:
parent
eb1fbd2048
commit
15b89287c5
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ATTACK="module-php"
|
||||
PHP_SPAM=$(grep $2 $3 | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
|
||||
PHP_SPAM=$(grep $2 $3 | grep $1 | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
|
||||
if [[ $PHP_SPAM -gt 10 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK-$1"
|
||||
|
Loading…
Reference in New Issue
Block a user