fix
This commit is contained in:
parent
5cd12734b9
commit
5b91a8cf38
1
bots.txt
1
bots.txt
@ -1885,3 +1885,4 @@
|
||||
20.161.78.204
|
||||
172.183.154.242
|
||||
13.79.231.196
|
||||
202.112.238.240
|
||||
|
@ -501,11 +501,10 @@ module-nostr(){
|
||||
DATE="$(date +%d/%b/%Y:%H:%M -d '1 min ago')"
|
||||
IP=($(grep $DATE $NGINX_ACCESS | grep "/block=" | cut -d '=' -f2| cut -d ' ' -f1 | sed 's/"//'))
|
||||
for i in "${IP[@]}"; do
|
||||
echo $i
|
||||
CHECK=$(cat /opt/strfry-policies/strfry-policy.ts | grep $i)
|
||||
if [ "$CHECK" = "" ]; then
|
||||
echo "Blocking NPUB: $i"
|
||||
/opt/strfry-polices/block.sh $i
|
||||
echo "No Npubs to block"
|
||||
bash /opt/strfry-policies/block.sh $i
|
||||
else
|
||||
echo "No Npubs to block"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user