FingerprintJS 浏览器指纹识别
25人浏览 / 0人评论
地址:https://github.com/fingerprintjs/fingerprintjs
在线测试:https://fingerprintjs.github.io/fingerprintjs
使用:
<script>
// Initialize the agent at application startup.
// If you're using an ad blocker or Brave/Firefox, this import will not work.
// Please use the NPM package instead: https://t.ly/ORyXk
const fpPromise = import('https://openfpcdn.io/fingerprintjs/v4')
.then(FingerprintJS => FingerprintJS.load())
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => {
// This is the visitor identifier:
const visitorId = result.visitorId
console.log(visitorId)
})
</script>
全部评论