https://github.com/microlinkhq/is-antibot
Identify if a response is an antibot challenge from CloudFlare, Akamai, DataDome, Vercel, and more.
https://github.com/microlinkhq/is-antibot
Last synced: 2 months ago
JSON representation
Identify if a response is an antibot challenge from CloudFlare, Akamai, DataDome, Vercel, and more.
- Host: GitHub
- URL: https://github.com/microlinkhq/is-antibot
- Owner: microlinkhq
- License: mit
- Created: 2025-12-31T16:18:06.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2026-01-05T13:22:53.000Z (5 months ago)
- Last Synced: 2026-01-13T19:51:26.846Z (5 months ago)
- Language: JavaScript
- Homepage: https://microlink.io/blog/antibot-at-scale
- Size: 144 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README


[](https://coveralls.io/github/microlinkhq/is-antibot)
[](https://www.npmjs.org/package/is-antibot)
> Identify if a response is an antibot challenge from CloudFlare, Akamai, DataDome, Vercel, and more.
## Supported Providers
### Anti-Bot Systems
- **CloudFlare** - Bot management and challenge pages
- **Vercel** - Attack mode protection
- **Akamai** - Bot Manager and Web Application Protector
- **DataDome** - Bot protection with CAPTCHA challenges
- **PerimeterX** - Behavioral bot detection
- **Shape Security** - Enterprise bot management
- **Kasada** - Advanced bot mitigation
- **Imperva/Incapsula** - Web application firewall
- **AWS WAF** - Amazon Web Services Web Application Firewall
- **Reblaze** - Cloud-based web security platform
- **Cheq** - Bot detection and prevention
- **Sucuri** - Website security platform and WAF
- **ThreatMetrix** - LexisNexis fraud prevention and device fingerprinting
- **Meetrics** - User authenticity verification
- **Ocule** - Bot detection with advanced obfuscation
- **YouTube** - BotGuard attestation and abuse detection
- **LinkedIn** - Bot filter protection
- **Reddit** - Network security challenge-page detection
### CAPTCHA Providers
- **reCAPTCHA** - Google's CAPTCHA service (v2 and v3)
- **hCaptcha** - Privacy-focused CAPTCHA alternative
- **FunCaptcha** - Arkose Labs interactive challenges
- **GeeTest** - AI-powered CAPTCHA
- **Cloudflare Turnstile** - Privacy-preserving CAPTCHA alternative
- **Friendly Captcha** - GDPR-compliant privacy-first CAPTCHA
- **Captcha.eu** - European GDPR-compliant CAPTCHA service
- **QCloud Captcha** - Tencent Cloud CAPTCHA service
- **AliExpress CAPTCHA** - AliExpress x5sec security challenge
## Why
Websites receiving massive quantities of traffic throughout the day, like LinkedIn, Reddit, Instagram, or YouTube, have sophisticated antibot systems to prevent automated access.
When you try to fetch the HTML of these sites without the right tools, you often hit a 403 Forbidden, 429 Too Many Requests, or a "Please prove you're human" challenge, leaving you with a response that contains no useful data.
**is-antibot** is a lightweight, vendor-agnostic JavaScript library that identifies when a response is actually an antibot challenge, helping you understand when and why your request was blocked.
## Install
```bash
$ npm install is-antibot --save
```
## Usage
Just pass `headers`, `html`, and `url` from any HTTP response:
```js
const isAntibot = require('is-antibot')
const response = await fetch('https://www.linkedin.com/in/kikobeats/')
const html = await response.text()
const { detected, provider, detection } = isAntibot({
headers: response.headers,
html,
url: response.url
})
if (detected) {
console.log(`Antibot detected: ${provider} via ${detection}`)
}
```
It also works with [got](https://github.com/sindresorhus/got) or any library where `body` is a string:
```js
const response = await got('https://www.linkedin.com/in/kikobeats/')
.catch(error => errorresponse)
const { detected, provider, detection } = isAntibot(response)
if (detected) {
console.log(`Antibot detected: ${provider} via ${detection}`)
}
```
The library returns an object with the following properties:
- `detected` (boolean): Whether an antibot challenge was detected
- `provider` (string|null): The name of the detected provider (e.g., 'cloudflare', 'recaptcha')
- `detection` (string|null): Where the signal came from: `'headers'`, `'cookies'`, `'html'`, or `'url'`
## License
**is-antibot** © [microlink.io](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/is-antibot/blob/master/LICENSE.md) License.
Authored and maintained by [microlink.io](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/is-antibot/contributors).
> [microlink.io](https://microlink.io) · GitHub [microlink.io](https://github.com/microlinkhq) · X [@microlinkhq](https://x.com/microlinkhq)