mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 02:29:58 +00:00
Run Whitelisting Test
This commit is contained in:
parent
cbd38e450e
commit
5307e60640
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ sudo cp ${TRAVIS_BUILD_DIR}/.dev-tools/blacklist-user-agents.conf /etc/nginx/bot
|
|||
echo "Reloading Nginx"
|
||||
sudo nginx -t && sudo nginx -s reload
|
||||
|
||||
sleep 30s
|
||||
|
||||
# *******************************************************
|
||||
# Function Curl Test 16 - Test User Whitelist for "Nutch"
|
||||
|
@ -35,7 +36,7 @@ if curl -v -A "Nutch" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
|
|||
else
|
||||
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
|
||||
#exit 1
|
||||
curl -v -A "Nutch" http://localhost:9000/index.php 2>&1
|
||||
curl -v -A "Nutch" http://localhost:9000 2>&1
|
||||
fi
|
||||
}
|
||||
run_curltest1
|
||||
|
@ -47,7 +48,7 @@ if curl -v -A "Nutch" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
|
|||
else
|
||||
echo "$(tput setaf 1)WHITELISTING FAILED - TEST FAILED"
|
||||
#exit 1
|
||||
curl -v -A "Nutch" http://localhost:9000/index.php 2>&1
|
||||
curl -v -A "Nutch" http://localhost:9000 2>&1
|
||||
fi
|
||||
}
|
||||
run_curltest2
|
||||
|
|
Loading…
Add table
Reference in a new issue