mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
TEST Rate Limiting Build Test REF: #175
This commit is contained in:
parent
784b2a2024
commit
1e70c3acca
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ file=${TRAVIS_BUILD_DIR}/.dev-tools/test_units/rate-limit-googlebot.list
|
|||
lines=$(cat ${file})
|
||||
for line in ${lines}; do
|
||||
if
|
||||
curl http://localhost:9000 -e "http://${line}" 2>&1 | grep -i 'Welcome'; then
|
||||
curl -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then
|
||||
echo "${bold}${green}PASSED - ${red}${line} was ${bold}${green}ALLOWED"
|
||||
else
|
||||
echo "${bold}${red}FAILED - ${red}${line} was ${bold}${red}NOT ALLOWED"
|
||||
|
|
Loading…
Add table
Reference in a new issue