diff --git a/packages/tiers/src/tier1.ts b/packages/tiers/src/tier1.ts index 30e45cd..2a499f7 100644 --- a/packages/tiers/src/tier1.ts +++ b/packages/tiers/src/tier1.ts @@ -1,6 +1,6 @@ import { FINGERPRINT } from "@trawl/browser" import type { TierResult } from "@trawl/types" -import { isBlocked, isCloudflarePage } from "./detect" +import { hasHcaptcha, hasRecaptcha, hasTurnstile, isBlocked, isCloudflarePage } from "./detect" import { normalizeHtml } from "./html" export interface Tier1Result extends TierResult { @@ -42,6 +42,21 @@ export async function runTier1( return { tier: 1, status: "needs-js", durationMs: Date.now() - start, reason: "cloudflare-challenge" } } + // JS-only challenges: the page's static HTML is just a shell that loads the + // captcha widget via