@fingerprintjs/botd
v1.9.1
Published
botd is a browser library for JavaScript bot detection
Downloads
67,849
Readme
BotD
BotD is an open source library that we created to make it easy for every developer to detect basic bots in their web apps.
It is available under a permissive MIT license and will always be free for developers and commercial use.
For more demanding applications we created a professional API-based bot detection software that is called Fingerprint Pro Bot Detection.
Quick start
CDN
<script>
// Initialize an agent at application startup, once per page/app.
const botdPromise = import('https://openfpcdn.io/botd/v1').then((Botd) => Botd.load())
// Get detection results when you need them.
botdPromise
.then((botd) => botd.detect())
.then((result) => console.log(result))
.catch((error) => console.error(error))
</script>
NPM
npm i @fingerprintjs/botd
# or
yarn add @fingerprintjs/botd
import { load } from '@fingerprintjs/botd'
// Initialize an agent at application startup, once per page/app.
const botdPromise = load()
// Get detection results when you need them.
botdPromise
.then((botd) => botd.detect())
.then((result) => console.log(result))
.catch((error) => console.error(error))
🤖 Upgrade to Fingerprint Pro Bot Detection to detect sophisticated bots with confidence.
Fingerprint Pro Bot Detection is a professional bot detection service that processes all information server-side and transmits it securely to your servers using server-to-server APIs.
Fingerprint Pro Bot Detection provides both browser and server-side APIs that make the process of bot detection fast and secure. When using the Pro Bot Detection, use the browser JavaScript SDK to obtain the requestID value and then verify this value using our server API.
The Pro product combines vast amounts of auxiliary data that bots leak (cursor movements, network overrides, browser changes and more) to be able to reliably deduplicate real users from automated software, resulting in the detection of popular automation tools, their derivatives and plugins.
A big advantage of the Pro detection is that it's able to distinguish good bots from bad ones that allow you to block malicious traffic without blocking search engine crawlers, monitoring workers, etc.
Full product comparison:
1. Pro uses the open source BotD library as well as proprietary technology for increased accuracy and result stability.
2. Fingerprint Pro is GDPR and CCPA compliant as the data processor. You still need to be compliant as the data controller and use the bot detection for fraud prevention under legitimate interest or ask for user consent.
Pro result example:
{
"bot": {
"result": "bad"
"type": "selenium"
}
}
📕 Fingerprint Pro documentation
Migrating from v0
Supported browsers
The library supports all popular browsers. See more details and learn how to run the library in old browsers in the browser support guide.
Where to get support
Thanks to our series B funding, we are happy to provide technical support for our open-source BotD library. We recommend using GitHub Issues to submit bugs or Discussions to ask questions. Using issues and discussions publicly will help the open-source community and other users with similar issues. However, if you require private support, please email us at [email protected].
Contributing
See the contributing guidelines to learn how to start a playground, test and build.
Other products by Fingerprint on GitHub!
- FingerprintJS -- browser fingerprinting library that queries browser attributes and computes a hashed visitor identifier from them
- Fingerprint Android -- Android identification and fingerprinting in native apps