Function: detectBotChallenge()
ts
function detectBotChallenge(response, body?):
| BotChallengeVendor
| undefined;Defined in: src/errors.ts:230
Which bot protection's challenge interstitial response is, or undefined if it doesn't look like one and presumably came from the fediverse software itself.
Cloudflare documents cf-mitigated: challenge. Anubis has no documented detection contract, so markers are empirical (verified against live v1.25/v1.26 deployments; the live-smoke suite detects drift): its *anubis* cookies (readable on native and server runtimes; browsers hide Set-Cookie, but real browsers pass challenges anyway) and its /.within.website/ vendor asset namespace in the challenge HTML (body — already-consumed text).
Parameters
| Parameter | Type |
|---|---|
response | Response |
body? | string |
Returns
| BotChallengeVendor | undefined
