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 experience 429 TOOMANYREQUESTS 401 UNAUTHORIZED 403 FORBIDDEN Followed by a challenge page. A captcha. A JavaScript…
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:
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.
When the request got no answer at all (it timed out or the connection was dropped), there is no response to read. Pass the autonomous system number of the origin IP as asn instead, and a provider that holds blocked clients on an open connection, as Akamai does, is still detected:
asn is only read when there is no statusCode, so leave statusCode out only when no response arrived: an origin that answered is judged by its answer. Both 20940 and 'AS20940' are accepted.
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, including a technique (javascript, captcha, waf, or cookie) so callers can choose a retry strategy.
Providers
is-antibot currently detects challenges across antibot systems, CAPTCHA vendors, and platform-specific protection flows.
Provider
Category
Signals
Detection methods
Akamai
Antibot
4
HeadersCookiesHTMLASN
AliExpress CAPTCHA
CAPTCHA
2
HTMLURL
Amazon
Platform-specific
2
HeadersHTML
Anubis
Antibot
1
HTML
AWS WAF
Antibot
3
HeadersCookiesHTML
Captcha.eu
CAPTCHA
2
HTMLURL
Cheq
Antibot
2
HTMLURL
Cloudflare
Antibot
3
HeadersCookiesHTML
Cloudflare Turnstile
CAPTCHA
2
HTMLURL
CloudFront
Antibot
2
HeadersHTML
DataDome
Antibot
3
HeadersCookiesHTML
Douban
Platform-specific
1
Status Code
Dribbble
Platform-specific
1
Status Code
Friendly Captcha
CAPTCHA
2
HTMLURL
FullStory Challenge
Antibot
2
CookiesHTML
FunCaptcha (Arkose Labs)
CAPTCHA
2
HTMLURL
GeeTest
CAPTCHA
2
HTMLURL
Google
Platform-specific
1
URL
hCaptcha
CAPTCHA
2
HTMLURL
Hostinger
Antibot
2
HeadersHTML
Houzz
Platform-specific
1
Status Code
Imperva / Incapsula
Antibot
3
HeadersCookiesHTML
Instagram
Platform-specific
3
HTMLURLStatus Code
Kasada
Antibot
2
HeadersHTML
LinkedIn
Platform-specific
1
Status Code
Meetrics
Antibot
2
HTMLURL
Ocule
Antibot
2
HTMLURL
PerimeterX
Antibot
4
HeadersCookiesHTMLURL
QCloud Captcha
CAPTCHA
2
HTMLURL
Reblaze
Antibot
2
CookiesHTML
reCAPTCHA
CAPTCHA
2
HTMLURL
Reddit
Platform-specific
2
HTMLStatus Code
Shape Security
Antibot
2
HeadersHTML
Sucuri
Antibot
1
HTML
ThreatMetrix
Antibot
2
HTMLURL
Vercel
Antibot
1
Headers
Weibo
Platform-specific
1
HTML
YouTube
Platform-specific
1
HTML
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.
评论