fix
This commit is contained in:
parent
d9bd1ea784
commit
142f200882
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
MY_IP="47.5.115.173"
|
||||
MY_IP=($(redis-cli --raw SMEMBERS my_ip))
|
||||
ATTACK_THRESHOLD="50"
|
||||
NGINX_ACCESS="/tmp/access.log"
|
||||
#Firewall Port Configuration
|
||||
@ -473,6 +473,7 @@ importDB() {
|
||||
for i in "${DATA[@]}"; do redis-cli SADD bots $i; done
|
||||
DATA=($(cat crawlers.txt))
|
||||
for i in "${DATA[@]}"; do redis-cli SADD crawlers $i; done
|
||||
redis-cli SADD my_ip $(curl ifconfig.me)
|
||||
}
|
||||
|
||||
exportDB() {
|
||||
|
Loading…
Reference in New Issue
Block a user