mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-09 13:55:41 +00:00
Debug testing of whitelist-domains.conf
This commit is contained in:
parent
370ee147b9
commit
d90be7f2fe
1 changed files with 6 additions and 4 deletions
|
@ -58,24 +58,26 @@ sleep 30s
|
|||
# *************************************************
|
||||
|
||||
run_curltest1 () {
|
||||
if curl -I http://localhost:9000 -e http://www.myowndomain.com 2>&1 | grep -i 'Welcome'; then
|
||||
if curl -I http://localhost:9000 -e http://myowndomain.com 2>&1 | grep -i 'Welcome'; then
|
||||
echo "${bold}${green}PASSED - User whitelist-domains.conf working"
|
||||
else
|
||||
echo "${bold}${red}FAILED - User whitelist-domains.conf NOT working"
|
||||
curl -I http://localhost:9000 -e http://myowndomain.com 2>&1
|
||||
#exit 1
|
||||
fi
|
||||
}
|
||||
run_curltest1
|
||||
|
||||
# **************************************************************
|
||||
# Function Curl Test 2 - Check for Whitelisted Referrer "zx6.ru"
|
||||
# **************************************************************
|
||||
# *************************************************
|
||||
# Function Curl Test 2 - Test User Domain Whitelist
|
||||
# *************************************************
|
||||
|
||||
run_curltest2 () {
|
||||
if curl -I http://localhost:9000 -e http://www.myotherdomain.com 2>&1 | grep -i 'Welcome'; then
|
||||
echo "${bold}${green}PASSED - User whitelist-domains.conf working"
|
||||
else
|
||||
echo "${bold}${red}FAILED - User whitelist-domains.conf NOT working"
|
||||
curl -I http://localhost:9000 -e http://www.myotherdomain.com 2>&1
|
||||
#exit 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue