fix
This commit is contained in:
parent
8c356ee5ae
commit
8f7d1d4c53
160
bots.txt
160
bots.txt
@ -2062,3 +2062,163 @@
|
||||
64.124.8.158
|
||||
52.225.76.179
|
||||
40.67.135.168
|
||||
2a01:4ff:f0:959::1
|
||||
76.69.66.206
|
||||
20.172.17.134
|
||||
20.109.60.255
|
||||
2a03:2880:f800:5::
|
||||
64.71.131.244
|
||||
89.58.62.131
|
||||
20.98.6.130
|
||||
20.55.118.241
|
||||
95.108.213.169
|
||||
65.21.237.125
|
||||
173.252.107.22
|
||||
205.210.31.180
|
||||
20.88.15.115
|
||||
199.45.155.89
|
||||
173.212.209.16
|
||||
167.94.146.54
|
||||
162.216.150.72
|
||||
67.205.5.174
|
||||
92.51.135.205
|
||||
66.249.72.237
|
||||
2605:4c40:11:b322:0:f9e5:1cf5:1
|
||||
74.80.208.129
|
||||
45.61.141.83
|
||||
64.124.8.173
|
||||
64.124.8.111
|
||||
172.183.79.11
|
||||
2a03:2880:f800:9::
|
||||
198.235.24.229
|
||||
202.61.192.181
|
||||
205.210.31.243
|
||||
213.180.203.176
|
||||
213.180.203.216
|
||||
87.250.224.204
|
||||
193.26.156.23
|
||||
2a01:4ff:f0:959::1
|
||||
167.94.138.41
|
||||
40.65.196.153
|
||||
198.235.24.60
|
||||
147.185.132.78
|
||||
20.51.198.146
|
||||
72.13.62.43
|
||||
107.22.20.204
|
||||
4.227.114.100
|
||||
2a03:2880:11ff:c::face:b00c
|
||||
74.80.208.160
|
||||
89.234.140.195
|
||||
20.171.46.102
|
||||
188.68.47.69
|
||||
167.172.244.121
|
||||
174.138.53.241
|
||||
217.113.194.182
|
||||
217.113.194.184
|
||||
217.113.194.185
|
||||
217.113.194.190
|
||||
167.172.244.121
|
||||
174.138.53.241
|
||||
217.113.194.183
|
||||
217.113.194.186
|
||||
217.113.194.187
|
||||
217.113.194.189
|
||||
159.65.144.72
|
||||
207.241.225.114
|
||||
207.241.235.133
|
||||
159.89.174.87
|
||||
87.250.224.75
|
||||
52.157.14.85
|
||||
40.76.119.100
|
||||
147.185.132.111
|
||||
205.210.31.165
|
||||
172.183.132.65
|
||||
172.183.122.246
|
||||
213.180.203.108
|
||||
5.255.231.147
|
||||
13.79.225.115
|
||||
62.153.7.208
|
||||
13.74.145.44
|
||||
40.76.119.167
|
||||
52.238.28.64
|
||||
66.249.79.201
|
||||
103.140.148.7
|
||||
64.124.8.115
|
||||
74.80.208.59
|
||||
172.183.121.13
|
||||
195.32.64.191
|
||||
2a07:7e81:3c0b:2:dc18:f6d7:a755:f2f3
|
||||
116.203.136.173
|
||||
64.124.8.180
|
||||
205.210.31.30
|
||||
172.190.111.174
|
||||
52.234.38.64
|
||||
66.249.72.65
|
||||
69.171.249.23
|
||||
52.225.76.182
|
||||
4.227.114.189
|
||||
205.210.31.91
|
||||
116.179.37.186
|
||||
116.179.37.246
|
||||
116.179.37.55
|
||||
116.179.37.83
|
||||
220.181.108.111
|
||||
205.210.31.102
|
||||
91.214.64.2
|
||||
91.214.65.46
|
||||
2a03:2880:13ff:32::face:b00c
|
||||
152.53.12.66
|
||||
95.216.75.157
|
||||
13.91.69.160
|
||||
13.83.123.149
|
||||
213.180.203.161
|
||||
87.250.224.230
|
||||
219.104.133.24
|
||||
20.161.78.8
|
||||
172.183.91.35
|
||||
213.180.203.56
|
||||
213.180.203.245
|
||||
95.108.213.123
|
||||
5.255.231.153
|
||||
213.180.203.163
|
||||
213.180.203.91
|
||||
5.255.231.176
|
||||
213.180.203.185
|
||||
213.180.203.37
|
||||
95.108.213.89
|
||||
2a03:2880:22ff:4::face:b00c
|
||||
64.124.8.122
|
||||
213.180.203.220
|
||||
87.250.224.44
|
||||
87.250.224.241
|
||||
198.235.24.14
|
||||
64.124.8.135
|
||||
40.76.119.98
|
||||
64.124.8.195
|
||||
64.124.8.232
|
||||
51.81.33.123
|
||||
64.124.8.217
|
||||
2a03:2880:f800:13::
|
||||
20.102.46.215
|
||||
213.232.87.232
|
||||
178.254.30.106
|
||||
172.183.51.79
|
||||
13.83.1.208
|
||||
213.180.203.89
|
||||
193.189.100.203
|
||||
64.124.8.108
|
||||
198.235.24.106
|
||||
20.55.47.54
|
||||
20.102.46.220
|
||||
172.183.52.207
|
||||
13.88.100.238
|
||||
34.207.251.156
|
||||
205.210.31.60
|
||||
159.65.154.16
|
||||
47.89.154.16
|
||||
20.81.159.21
|
||||
64.124.8.237
|
||||
74.80.208.131
|
||||
184.72.104.129
|
||||
64.124.8.204
|
||||
3.94.89.109
|
||||
|
13
firewall2.sh
13
firewall2.sh
@ -101,6 +101,7 @@ attacker-protection() {
|
||||
watch
|
||||
pedo-search
|
||||
bot-search
|
||||
module-nostr
|
||||
}
|
||||
|
||||
bot-search() {
|
||||
@ -495,21 +496,15 @@ watch() {
|
||||
echo
|
||||
fi
|
||||
done
|
||||
module-nostr
|
||||
}
|
||||
|
||||
module-nostr(){
|
||||
POLICY='/opt/strfry-policies/strfry-policy.ts'
|
||||
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
|
||||
if [[ "$i" == *"npub"* ]]; then
|
||||
HEX=$(nak decode $i | jq ".pubkey" | sed 's/"//i' | sed 's/"//i')
|
||||
echo "Adding $HEX to block list"
|
||||
sed -i "29i '$HEX'," $POLICY
|
||||
sed -i "s/\'\'//g" $POLICY
|
||||
sed -i "s/'',//g" $POLICY
|
||||
sed -i '/^$/d' $POLICY
|
||||
bash /opt/strfry-policies/block.sh $i
|
||||
else
|
||||
echo "No Npubs to block"
|
||||
fi
|
||||
@ -615,6 +610,8 @@ elif [ "$1" = "message" ]; then
|
||||
message $2
|
||||
elif [ "$1" = "test" ]; then
|
||||
test-bots
|
||||
elif [ "$1" = "nostr" ]; then
|
||||
module-nostr
|
||||
elif [ "$1" = "saved" ]; then
|
||||
saved-bots
|
||||
else
|
||||
|
@ -104,3 +104,10 @@
|
||||
160.16.228.67
|
||||
174.214.49.139
|
||||
203.118.131.219
|
||||
84.210.80.99
|
||||
84.210.80.99
|
||||
24.205.203.160
|
||||
24.205.203.160
|
||||
24.205.203.160
|
||||
24.205.203.160
|
||||
24.205.203.160
|
||||
|
Loading…
Reference in New Issue
Block a user