@anonympins/fingerprint 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/fingerprint.client.js +454 -458
- package/fingerprint.js +294 -156
- package/library.js +1613 -1577
- package/package.json +1 -1
- package/pow.solver.js +13 -1
package/README.md
CHANGED
|
@@ -98,15 +98,11 @@ const securityConfig = {
|
|
|
98
98
|
challengeTtl: 300000, // 5 minutes. Time during which a challenge nonce is valid.
|
|
99
99
|
deviceIdCookieMaxAge: undefined, // By default, it's a session cookie. Set a value in ms for a persistent cookie.
|
|
100
100
|
challengePagePath: './path/to/your/custom-challenge-page.html', // (Optional) Path to a custom HTML template for the challenge page.
|
|
101
|
-
verbose:
|
|
101
|
+
verbose: process.env.NODE_ENV !== 'production', // Log detailed info in development, but not in production.
|
|
102
102
|
patterns: { // (Optional) Initial values for request pattern detection, optimized by auto-tuner if enabled.
|
|
103
103
|
velocityThreshold: 800, // ms between requests to be considered "fast"
|
|
104
104
|
burstThreshold: 1500, // ms for identical requests to be a "burst"
|
|
105
105
|
scrapeThreshold: 1000, // ms for sequential requests to be "scraping"
|
|
106
|
-
scrapeBurstWeight: 40, // Additional weight for repeated scraping patterns
|
|
107
|
-
sequenceLength: 3, // Length of a request sequence to detect (e.g., A->B->C)
|
|
108
|
-
sequenceWeight: 60, // Penalty for repeating a sequence
|
|
109
|
-
sequenceMinTimeSpan: 2000, // Sequence min time span
|
|
110
106
|
historySize: 10, // Number of requests to keep for pattern analysis
|
|
111
107
|
decayFactor: 0.9, // How quickly the pattern score decays over time
|
|
112
108
|
inactivityReset: 30000, // ms of inactivity after which the pattern score is reset
|