Use Better Nginx Bad Bot Repository
This commit is contained in:
parent
2c46fafb24
commit
5cc5a6fff6
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue