Simple script for collecting some unique information from browsers
checkout the demo
- fetch fingerprint for
selenium-driverless
(applying fingerprints not yet implemented)
See dev-branch for the latest features.
You can embed the script into your website using a free CDN.
<script type="text/javascript" src="://unpkg.com/fp-collector"><script>
const fp = await getFingerprint(
(click_elem = document.querySelector("button")),
(check_bot = true),
(get_gl = true),
(check_worker = true),
);
click_elem:HTMLElement=document.documentElement
element to expect click oncheck_bot=true
requires touch or click eventsget_gl=true
will unavoidably show warnings in the console stack-overflowcheck_worker=true
requiresblob:
urls to be allowed ("Content-Security-Policy: worker-src 'self' blob:"
header might work)
// example script
async function handler() {
const data = await getFingerprint(document.querySelector("button"), true, true, false);
return JSON.stringify(data);
}
You can find some example output at sample_output.json
Please feel free to open an issue or fork!
Note: please check the todo's below at first!
Click to expand
- no TODO's yet
Copyright and Author:
Aurin Aegerter (aka Steve)
Cleanups, NPM: Peet
fp-collector is licensed under the MIT license! See LICENSE.md
for files in /docs and demo as well: jquery.json-viewer and jquery, which each have their own licence
I am not responsible what you use the code for!!! Also no warranty!
Inspiration, code snippets, etc.