mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
Cleanup Testing Template
This commit is contained in:
parent
b3ff071fa4
commit
9be840b3d6
4 changed files with 6 additions and 24 deletions
|
@ -1,11 +0,0 @@
|
|||
##############################################################################
|
||||
# _ __ _ #
|
||||
# / |/ /__ _(_)__ __ __ #
|
||||
# / / _ `/ / _ \\ \ / #
|
||||
# /_/|_/\_, /_/_//_/_\_\ #
|
||||
# __/___/ __ ___ __ ___ __ __ #
|
||||
# / _ )___ ____/ / / _ )___ / /_ / _ )/ /__ ____/ /_____ ____ #
|
||||
# / _ / _ `/ _ / / _ / _ \/ __/ / _ / / _ \/ __/ '_/ -_) __/ #
|
||||
# /____/\_,_/\_,_/ /____/\___/\__/ /____/_/\___/\__/_/\_\\__/_/ #
|
||||
# #
|
||||
##############################################################################
|
|
@ -135,7 +135,6 @@ map $http_user_agent $bad_bot {
|
|||
# Bad User-Agent Strings That We Block Outright
|
||||
# *********************************************
|
||||
|
||||
|
||||
# START BAD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
|
||||
"~*(?:\b)360Spider(?:\b|)" 3;
|
||||
"~*(?:\b)404checker(?:\b|)" 3;
|
||||
|
@ -698,10 +697,6 @@ map $http_user_agent $bad_bot {
|
|||
# Allow Good User-Agent Strings We Know and Trust
|
||||
# ***********************************************
|
||||
|
||||
# TEST CASES
|
||||
# **********
|
||||
#"~*(?:\b)Mozilla(?:|\s|,|\.|\b|\/|)" 0;
|
||||
|
||||
# START GOOD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
|
||||
"~*\badidxbot\b" 0;
|
||||
"~*\bAdsBot-Google\b" 0;
|
||||
|
@ -777,8 +772,6 @@ map $http_user_agent $bad_bot {
|
|||
"~*\bYandexImages\b" 2;
|
||||
# END LIMITED BOTS ### DO NOT EDIT THIS LINE AT ALL ###
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ echo "${bold}${green}---------------"
|
|||
printf "\n\n"
|
||||
sudo nginx -t && sudo nginx -s reload
|
||||
|
||||
echo "${bold}${yellow}--------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}Sleeping for 30 seconds to allow Nginx Properly Reload inside Travis"
|
||||
echo "${bold}${yellow}--------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}Sleeping for 30 seconds to allow Nginx to Properly Reload inside Travis"
|
||||
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||
printf "\n\n"
|
||||
sleep 30s
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ echo "${bold}${green}---------------"
|
|||
printf "\n\n"
|
||||
sudo nginx -t && sudo nginx -s reload
|
||||
|
||||
echo "${bold}${yellow}--------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}Sleeping for 30 seconds to allow Nginx Properly Reload inside Travis"
|
||||
echo "${bold}${yellow}--------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||
echo "${bold}${yellow}Sleeping for 30 seconds to allow Nginx to Properly Reload inside Travis"
|
||||
echo "${bold}${yellow}-----------------------------------------------------------------------"
|
||||
printf "\n\n"
|
||||
sleep 30s
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue