Use Better Nginx Bad Bot Repository

This commit is contained in:
earnolmartin 2019-12-06 10:39:02 -07:00
parent 2c46fafb24
commit 5cc5a6fff6
2 changed files with 2 additions and 4 deletions

View file

@ -2972,10 +2972,9 @@ function installBadBotsBlockerNginx(){
if [ -e "/etc/nginx" ]; then
cd /etc/nginx
if [ ! -e "nginx-badbot-blocker" ]; then
git clone https://github.com/mariusv/nginx-badbot-blocker.git
git clone https://github.com/own3mall/nginx-badbot-blocker.git
if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then
getServerIPAddr
sed -i "s#|python-requests##g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
fi
fi

View file

@ -2645,10 +2645,9 @@ function installBadBotsBlockerNginx(){
if [ -e "/etc/nginx" ]; then
cd /etc/nginx
if [ ! -e "nginx-badbot-blocker" ]; then
git clone https://github.com/mariusv/nginx-badbot-blocker.git
git clone https://github.com/own3mall/nginx-badbot-blocker.git
if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then
getServerIPAddr
sed -i "s#|python-requests##g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
fi
fi