mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 19:20:16 +00:00
[V4] Fix beta tests
This commit is contained in:
parent
d1cdfd6573
commit
29f2e78afa
2 changed files with 20 additions and 0 deletions
|
@ -55,6 +55,25 @@ cyan=$(tput setaf 6)
|
||||||
white=$(tput setaf 7)
|
white=$(tput setaf 7)
|
||||||
defaultcolor=$(tput setaf default)
|
defaultcolor=$(tput setaf default)
|
||||||
|
|
||||||
|
printf "\n"
|
||||||
|
echo "${bold}${yellow}-----------------------------------"
|
||||||
|
echo "${bold}${yellow}Delete Files to force fresh testing"
|
||||||
|
echo "${bold}${yellow}-----------------------------------"
|
||||||
|
printf "\n"
|
||||||
|
sudo rm /etc/nginx/conf.d/*.conf
|
||||||
|
sudo rm /etc/nginx/bots.d/*.conf
|
||||||
|
ls -la /etc/nginx/conf.d/
|
||||||
|
ls -la /etc/nginx/bots.d/
|
||||||
|
|
||||||
|
printf "\n"
|
||||||
|
echo "${bold}${magenta}-------------------------"
|
||||||
|
echo "${bold}${magenta}Execute update-ngxblocker"
|
||||||
|
echo "${bold}${magenta}-------------------------"
|
||||||
|
printf "\n"
|
||||||
|
cd /usr/sbin
|
||||||
|
sudo bash ./update-ngxblocker -n
|
||||||
|
|
||||||
|
|
||||||
# ***********************************************************************
|
# ***********************************************************************
|
||||||
# Make sure we test latest generated globalblacklist-testing-version.conf
|
# Make sure we test latest generated globalblacklist-testing-version.conf
|
||||||
# ***********************************************************************
|
# ***********************************************************************
|
||||||
|
|
|
@ -62,6 +62,7 @@ if curl -v -A "80legs" http://localhost:9000 2>&1 | grep -i '(52)'; then
|
||||||
echo "${bold}${green}PASSED - ${red}80legs BAD BOT DETECTED"
|
echo "${bold}${green}PASSED - ${red}80legs BAD BOT DETECTED"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}FAILED - ${red}80legs BAD BOT NOT DETECTED"
|
echo "${bold}${red}FAILED - ${red}80legs BAD BOT NOT DETECTED"
|
||||||
|
curl -v -A "80legs" http://localhost:9000 2>&1
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue