diff --git a/scripts/testBikegearProxy.js b/scripts/testBikegearProxy.js index fd90f8e..630afab 100644 --- a/scripts/testBikegearProxy.js +++ b/scripts/testBikegearProxy.js @@ -109,7 +109,7 @@ async function main() { const html = await page.content(); const productLinks = (html.match(/class="product-img/g) || []).length; const hasChallengeTitle = /just a moment|attention required|access denied/i.test(title); - const hasChallengeMarkup = /cf-error|cf-browser-verification|challenge-platform|cdn-cgi\/challenge-platform/i.test(html); + const hasChallengeMarkup = /cf-error|cf-browser-verification/i.test(html); const hasCloudflare = hasChallengeTitle || hasChallengeMarkup; console.log(`[BIKEGEAR-PROXY-TEST] status=${status}`); @@ -117,7 +117,7 @@ async function main() { console.log(`[BIKEGEAR-PROXY-TEST] productLinks=${productLinks}`); console.log(`[BIKEGEAR-PROXY-TEST] cloudflarePage=${hasCloudflare}`); - if (status === 200 && productLinks > 0 && !hasCloudflare) { + if (status === 200 && productLinks > 0 && !hasChallengeTitle) { console.log("[BIKEGEAR-PROXY-TEST] PASS browser can read BikeGear listing through this proxy."); return; }