mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Fix Testing of bad-referrer-words.conf
This commit is contained in:
parent
02ff7b8826
commit
6d7b8ff0f8
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ sleep 30s
|
|||
# *******************************************************
|
||||
|
||||
run_curltest1 () {
|
||||
if curl -v -A "thisisabadword" http://localhost:9000 2>&1 | grep -i '(52)'; then
|
||||
if curl -I http://localhost:9000 -e "thisisabadword" 2>&1 | grep -i '(52)'; then
|
||||
echo "${bold}${green}PASSED - User bad-referrer-words.conf working"
|
||||
else
|
||||
echo "${bold}${red}FAILED - User bad-referrer-words.conf NOT working"
|
||||
|
@ -72,7 +72,7 @@ run_curltest1
|
|||
# **************************************************************
|
||||
|
||||
run_curltest2 () {
|
||||
if curl -v -A "thisisanotherbadword" http://localhost:9000 2>&1 | grep -i '(52)'; then
|
||||
if curl -I http://localhost:9000 -e "thisisanotherbadword" 2>&1 | grep -i '(52)'; then
|
||||
echo "${bold}${green}PASSED - User bad-referrer-words.conf working"
|
||||
else
|
||||
echo "${bold}${red}FAILED - User bad-referrer-words.conf NOT working"
|
||||
|
|
Loading…
Add table
Reference in a new issue