This commit is contained in:
Your Name 2024-09-18 23:47:56 -06:00
parent 5cd12734b9
commit 5b91a8cf38
2 changed files with 3 additions and 3 deletions

View File

@ -1885,3 +1885,4 @@
20.161.78.204
172.183.154.242
13.79.231.196
202.112.238.240

View File

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