Skip to main content
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.

Metadata

Release files for is-antibot 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for is-antibot 0.1.1
File Size Uploaded Provenance
is_antibot-0.1.1.tar.gz 11.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for is-antibot 0.1.1
File Interpreter ABI Platform
is_antibot-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / is_antibot-0.1.1.tar.gz

Download URL is_antibot-0.1.1.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d50eb934bbf5eb648204f6087ee7f19e82573b035fdf984aed166a3610a6cffc
BLAKE2b-256 checksum
How to use checksums
03115a9c7984697f1005c597f55030c29f8c11c8edcbf2d4d4d0f3fe2f94f077
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / is_antibot-0.1.1-py3-none-any.whl

Download URL is_antibot-0.1.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75b3feae3c21324aff18fb6965d0e9fcff204c1c7c57e6eb670c17b59b34945a
BLAKE2b-256 checksum
How to use checksums
e967b714ea2ed81ff1affc5e5afe6048872a9a14d150f3dffe17a8825bfe6cd1
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for is-antibot 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page