From b83195294a55faa2e9e9ec31dad6b29a6c39a618 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 1 Jul 2019 12:03:35 +0200 Subject: [PATCH] [BETA] FIX Referrer False Positive Testing REF: #277 --- .dev-tools/beta-test-blocker-false-positives.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.dev-tools/beta-test-blocker-false-positives.sh b/.dev-tools/beta-test-blocker-false-positives.sh index 33310a145..303b27835 100755 --- a/.dev-tools/beta-test-blocker-false-positives.sh +++ b/.dev-tools/beta-test-blocker-false-positives.sh @@ -152,7 +152,7 @@ REFtest_mustmatch () { for mustmatch in "${REFmustmatch[@]}" do if - curl -A "${mustmatch}" http://localhost:9000 2>&1 | grep -i '(52)'; then + curl -I http://localhost:9000 -e "${mustmatch}" 2>&1 | grep -i '(52)'; then echo "${bold}${green}PASSED - ${red}${mustmatch} was ${bold}${red}BLOCKED" else echo "${bold}${red}FAILED - ${red}${mustmatch} was ${bold}${red}NOT BLOCKED" @@ -165,7 +165,7 @@ REFtest_mustnotmatch () { for mustnotmatch in "${REFmustnotmatch[@]}" do if - curl -A "${mustnotmatch}" http://localhost:9000 2>&1 | grep -i '(52)'; then + curl -I http://localhost:9000 -e "${mustnotmatch}" 2>&1 | grep -i '(52)'; then echo "${bold}${red}FAILED (FALSE POSITIVE DETECTED) - ${bold}${red}${mustnotmatch}" #exit 1 else