mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
[BETA] ADD Outputs in False Positive Case Testing Script
For testing REGEX Changes and detection of False Positives REF: #277
This commit is contained in:
parent
c183fbca99
commit
1445a8a9cd
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,7 @@ do
|
|||
echo "${bold}${green}PASSED - ${red}${mustmatch} was ${bold}${red}BLOCKED"
|
||||
else
|
||||
echo "${bold}${red}FAILED - ${red}${mustmatch} was ${bold}${red}NOT BLOCKED"
|
||||
curl -A "${mustmatch}" http://localhost:9000 2>&1
|
||||
#exit 1
|
||||
fi
|
||||
done
|
||||
|
@ -120,6 +121,7 @@ do
|
|||
#exit 1
|
||||
else
|
||||
echo "${bold}${green}PASSED (FALSE POSITIVE NOT DETECTED) - ${bold}${red}${mustnotmatch}"
|
||||
curl -A "${mustnotmatch}" http://localhost:9000 2>&1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue