Skip to main content

Detect antibot protection from 30+ providers — Cloudflare, Akamai, DataDome, PerimeterX, Kasada, Imperva, reCAPTCHA, hCaptcha, Turnstile, and more.

Project description

is-antibot

is-antibot detects antibot and CAPTCHA challenges from 30+ providers using signals.

Why?

microlink.io handles +700M requests every month.

When you're building infrastructure that needs an URL as input for getting data, you’re constantly interacting with defenses designed to stop you.

A request can experience429 TOO_MANY_REQUESTS401 UNAUTHORIZED403 FORBIDDEN

Followed by a challenge page. A captcha. A JavaScript puzzle.

Modern antibot systems operate at multiple layers, often before your request even reaches the application code.

Our library is-antibot does something fundamental: it tells you when a non-success resolution happens and who triggered it, so you can make a better decision about what to do next.

Common signals include:

  • IP reputation: Data-center IPs are flagged by default. Residential traffic behaves differently.
  • HTTP consistency: Headers must match a real browser profile—not just User-Agent, but the full set.
  • TLS fingerprints (JA3): The way a client negotiates TLS leaks whether it’s a browser or a script.
  • Behavioral heuristics: Timing, navigation order, and interaction patterns matter.
  • JavaScript fingerprinting: Canvas, WebGL, fonts, screen size—small inconsistencies are enough.

Based on these signals, a request is either:

  • Allowed: If the heuristics indicate a legitimate human visitor, the request is passed through to the target website.
  • Blocked: If the request is highly suspicious (e.g., coming from a known malicious IP or with a broken TLS fingerprint), it is blocked immediately with a 403 Forbidden or 429 Too Many Requests error.
  • Challenged: If the system is unsure, it serves a “challenge”—such as a CAPTCHA or a JavaScript-based interstitial—that must be resolved before the actual content is released.

Quick start

Install it as dependency is the first thing to do:

npm install is-antibot

is-antibot is designed to have a minimal footprint. It works with static HTTP response analysis.

No headless browser is required. Just pass it the response information:

import isAntibot from 'is-antibot'

const response = await fetch('https://example.com')

const { detected, provider, detection } = isAntibot({
  headers: response.headers,
  statusCode: response.status,
  html: await response.text(),
  url: response.url
})

if (detected) {
  console.log(`Blocked by ${provider} (via ${detection})`)
  // => "Blocked by CloudFlare (via headers)"
}

The result is deterministic and fast—designed to run on every request without becoming the bottleneck.

It works with any HTTP client, including got, axios, undici or just the vanilla fetch.

How it works

At a high level, is-antibot classifies challenge responses using:

  • HTTP status patterns: Certain platforms use unusual status codes when blocking automation; for example, LinkedIn can return 999 and Reddit can return 403 on challenge flows.
  • Known challenge signatures: Challenge pages often include recognizable artifacts like CAPTCHA widgets, interstitial templates, or verification scripts.
  • Response headers and body markers: Blocking responses usually expose hints in headers and HTML, such as mitigation headers, challenge tokens, or provider-specific script references.
  • Provider-specific fingerprints: Each provider leaves a distinct combination of signals; for example, Cloudflare commonly surfaces cf-mitigated: challenge, while other providers rely more on cookie, URL, or HTML fingerprints.

Each provider has unique fingerprints across one or more of these signals. The library checks them in priority order and returns the first match.

Providers

is-antibot currently detects challenges across antibot systems, CAPTCHA vendors, and platform-specific protection flows.

Provider Category Signals Detection methods
AkamaiAntibot3HeadersCookiesHTML
AliExpress CAPTCHACAPTCHA2HTMLURL
AnubisAntibot1HTML
AWS WAFAntibot3HeadersCookiesHTML
Captcha.euCAPTCHA2HTMLURL
CheqAntibot2HTMLURL
CloudflareAntibot2HeadersCookies
Cloudflare TurnstileCAPTCHA2HTMLURL
DataDomeAntibot2HeadersCookies
Friendly CaptchaCAPTCHA2HTMLURL
FunCaptcha (Arkose Labs)CAPTCHA2HTMLURL
GeeTestCAPTCHA2HTMLURL
hCaptchaCAPTCHA2HTMLURL
Imperva / IncapsulaAntibot3HeadersCookiesHTML
InstagramPlatform-specific1HTML
KasadaAntibot2HeadersHTML
LinkedInPlatform-specific1Status Code
MeetricsAntibot2HTMLURL
OculeAntibot2HTMLURL
PerimeterXAntibot3HeadersCookiesHTML
QCloud CaptchaCAPTCHA2HTMLURL
reCAPTCHACAPTCHA2HTMLURL
ReblazeAntibot2CookiesHTML
RedditPlatform-specific2HTMLStatus Code
Shape SecurityAntibot2HeadersHTML
SucuriAntibot1HTML
ThreatMetrixAntibot2HTMLURL
VercelAntibot1Headers
YouTubePlatform-specific1HTML

Use this table as a quick coverage map when building retry logic, escalation rules, or provider-specific analytics in your scraping pipeline.

In case you are missing a provider or signal detection, please report to us, and we will continue evolving the library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

is_antibot-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

is_antibot-0.1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file is_antibot-0.1.1.tar.gz.

File metadata

  • Download URL: is_antibot-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for is_antibot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d50eb934bbf5eb648204f6087ee7f19e82573b035fdf984aed166a3610a6cffc
MD5 a2cb222ae7d7f6301dc0ccfa845358b4
BLAKE2b-256 03115a9c7984697f1005c597f55030c29f8c11c8edcbf2d4d4d0f3fe2f94f077

See more details on using hashes here.

File details

Details for the file is_antibot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: is_antibot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for is_antibot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75b3feae3c21324aff18fb6965d0e9fcff204c1c7c57e6eb670c17b59b34945a
MD5 49c87df34855c5ed33d6c366c7ffe83f
BLAKE2b-256 e967b714ea2ed81ff1affc5e5afe6048872a9a14d150f3dffe17a8825bfe6cd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page