fiux
This commit is contained in:
parent
5b25040de2
commit
eb1fbd2048
@ -5,7 +5,7 @@ ATTACK="module-akkoma-timeline-public"
|
||||
COUNT_SPAM=$(grep $2 $3 | grep "timelines/public" | grep $1 | wc -l)
|
||||
SEARCH_SPAM=$(($COUNT_SPAM))
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
if [[ $SEARCH_SPAM -gt 30 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
@ -2,7 +2,7 @@
|
||||
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)
|
||||
if [[ "$PHP_SPAM" -gt 10 ]]; then
|
||||
if [[ $PHP_SPAM -gt 10 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
bash $FIREWALL message "$ATTACK-$1"
|
||||
redis-cli SADD tmp_block $1
|
||||
|
Loading…
Reference in New Issue
Block a user