Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
fpscanner
Advanced tools
Readme
Library to detect bots and crawlers using browser fingerprinting.
You can see it in action on this page.
Fingerprint Scanner relies on Fp-Collect to collect a browser fingerprint. Since the purpose of the library is bot detection, it doesn't detect collect unnecessary fingerprint attributes used for tracking.
npm install fpscanner
In order to use Fingerprint-Scanner your need to pass a fingerprint collected using the fp-collect library. Then, we can analyze the fingerprint with the scanner.
const scanner = require('fpScanner');
//fingerprint is the fingerprint collected with fp-collect
scannerResults = scanner.analyseFingerprint(fingerprint);
// Name of the first test
console.log(scannerResults[0].name);
// PHANTOM_UA
// Result of the test
console.log(scannerResults[0].consistent);
// Either 1 (Inconsistent), 2 (Unsure) or 3 (Consistent)
// Data related with the test
console.log(scannerResults[0].data);
// User agent of the browser
analyseFingerprint returns an array of analysisResult's objects. Each object contains the following information:
Summary of the tests used to detect bots. For more details, visit the documentation page (coming soon).
We would like to thank CrossBrowserTesting for providing us an easy way to test our scanner on different platforms to reduce false positives.
FAQs
Detect bots using fingerprinting
The npm package fpscanner receives a total of 142 weekly downloads. As such, fpscanner popularity was classified as not popular.
We found that fpscanner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.