mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
Run Whitelisting Test
This commit is contained in:
parent
8a81eb29ab
commit
a2a6cd4660
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ sudo nginx -t && sudo nginx -s reload
|
|||
|
||||
run_curltest1 () {
|
||||
printf '\n%s\n%s\n%s\n\n' "#########################" "TESTING USER WHITELIST" "#########################"
|
||||
if curl -v -A "Nutch" http://localhost:9000/index.php 2>&1 | grep -i '200 OK'; then
|
||||
if curl -v -A "Nutch" http://localhost:9000/index.php 2>&1 | grep -i 'Welcome'; then
|
||||
echo "$(tput setaf 2)WHITELISTING OF BAD BOT ALLOWED - TEST PASSED"
|
||||
else
|
||||
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
|
||||
|
|
Loading…
Add table
Reference in a new issue