This commit is contained in:
Your Name 2024-09-23 22:44:50 -06:00
parent d9bd1ea784
commit 142f200882

View File

@ -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() {