This commit is contained in:
Your Name 2024-09-25 20:09:11 -06:00
parent 5b25040de2
commit eb1fbd2048
2 changed files with 2 additions and 2 deletions

View File

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

View File

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