mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
IMPROVE Rate Limiting Test REF: #175
This commit is contained in:
parent
8130c4db52
commit
c814f41aed
1 changed files with 6 additions and 1 deletions
|
@ -261,6 +261,7 @@ echo "${bold}${yellow}----------------------------------------------------------
|
|||
printf "\n\n"
|
||||
sleep 10s
|
||||
|
||||
if
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
|
@ -277,7 +278,11 @@ curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
|||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 &
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1
|
||||
curl -A "GoogleBot" http://localhost:9000 2>&1 | grep -i 'Unavailable'; then
|
||||
echo "${bold}${green}PASSED - ${red}GoogleBot was ${bold}${red}RATE LIMITED"
|
||||
else
|
||||
echo "${bold}${red}FAILED - ${red}GoogleBot was ${bold}${red}NOT RATE LIMITED"
|
||||
fi
|
||||
|
||||
printf "\n"
|
||||
echo "${bold}${green}---------------------------"
|
||||
|
|
Loading…
Add table
Reference in a new issue