f
This commit is contained in:
parent
730dfb435c
commit
e3590a06a7
14
firewall.sh
14
firewall.sh
@ -112,7 +112,7 @@ wireguard-networking() {
|
||||
|
||||
attacker-protection() {
|
||||
watch
|
||||
module-nostr
|
||||
bash $MODULES/module-nostr.sh "$i" "$DATE"
|
||||
bot-search
|
||||
}
|
||||
|
||||
@ -357,18 +357,6 @@ message() {
|
||||
echo "$1" | /root/go/bin/algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 --stdin
|
||||
}
|
||||
|
||||
module-nostr() {
|
||||
IP=($(grep $DATE $ACCESS | grep "/block=" | cut -d '=' -f2 | cut -d ' ' -f1 | sed 's/"//'))
|
||||
for i in "${IP[@]}"; do
|
||||
echo $i
|
||||
if [[ "$i" == *"npub"* ]]; then
|
||||
bash /opt/strfry-policies/block.sh $i
|
||||
else
|
||||
echo "No Npubs to block"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
test-bots() {
|
||||
for i in "${SAVED_BOTS[@]}"; do
|
||||
DATA=$(grep $i $ACCESS | grep -Fivf <(printf '%s\n' "${CRAWLER_DB[@]}"))
|
||||
|
Loading…
Reference in New Issue
Block a user