mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 19:50:17 +00:00
Revert BETA tests with Old Regex Boundaries
This commit is contained in:
parent
d82ceb87dd
commit
1f4df21c9d
2 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ echo "${bold}${yellow}---------------------------------------------------"
|
||||||
echo "${bold}${yellow}Copy Test Unit of globalblacklist.conf file to test"
|
echo "${bold}${yellow}Copy Test Unit of globalblacklist.conf file to test"
|
||||||
echo "${bold}${yellow}---------------------------------------------------"
|
echo "${bold}${yellow}---------------------------------------------------"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
sudo cp ./conf.d/globalblacklist-testing-version-oldregexboundaries.conf /etc/nginx/conf.d/globalblacklist.conf
|
sudo cp ./conf.d/globalblacklist-testing-version.conf /etc/nginx/conf.d/globalblacklist.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
# -------------
|
# -------------
|
||||||
|
|
|
@ -266,11 +266,11 @@ IFS=""
|
||||||
}
|
}
|
||||||
|
|
||||||
testRandomReferrers () {
|
testRandomReferrers () {
|
||||||
shuf -n 100 ./_generator_lists/bad-referrers.list > ./dev-tools/test_units/random-referrers-for-test.list
|
shuf -n 500 ./_generator_lists/bad-referrers.list > ./dev-tools/test_units/random-referrers-for-test.list
|
||||||
sort -u ./dev-tools/test_units/random-referrers-for-test.list -o ./dev-tools/test_units/random-referrers-for-test.list
|
sort -u ./dev-tools/test_units/random-referrers-for-test.list -o ./dev-tools/test_units/random-referrers-for-test.list
|
||||||
printf "\n"
|
printf "\n"
|
||||||
echo "${bold}${magenta}---------------------------------"
|
echo "${bold}${magenta}---------------------------------"
|
||||||
echo "${bold}${magenta}Testing 100 Random Bad Referrers"
|
echo "${bold}${magenta}Testing 500 Random Bad Referrers"
|
||||||
echo "${bold}${magenta}---------------------------------"
|
echo "${bold}${magenta}---------------------------------"
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
file=./dev-tools/test_units/random-referrers-for-test.list
|
file=./dev-tools/test_units/random-referrers-for-test.list
|
||||||
|
|
Loading…
Add table
Reference in a new issue