Skip to content

Fingerprinting script of Fingerprint-Scanner

License

Notifications You must be signed in to change notification settings

yixinNB/fp-collect

 
 

Repository files navigation

Fp-Collect

Build Status

Fingerprinting module of Fingerprint-Scanner, a library to detect bots/crawlers based on their fingerprint.

Getting Started

Installation

npm install

and

yx:首选 node_modules\.bin\webpack
编译为ts可调用文件  tsc ./src/fpCollect.js --allowJS --outDir dist --target ES2022 --declaration --sourceMap
npm run-script build

It generates a minified version called fpCollect.min.js in the dist/ directory.

Usage

const fingerprint = await fpCollect.generateFingerprint();

//or

fpCollect.generateFingerprint().then((fingerprint) => {
    // Do something with the fingerprint
});

Running the tests

Fp-collect use Puppeteer and Chrome headless to run its tests. They can be launched using npm test.

Attributes collected

Fp-collect collects only attributes required to detect bots, not attributes classically used for fingerprinting tracking, such as canvas. Details on the attributes and their meaning can be found in Fingerprint-Scanner.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Fingerprinting script of Fingerprint-Scanner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%