เบราว์เซอร์เอเจนต์
มีชนิดข้อมูลรวบรวมสัญญาณอุปกรณ์และตอบกลับด้วย visitor id และ request id
- ขนาดรายงาน
- ประมาณ 1 KB
- ติดตั้ง
- Script tag หรือ npm
- Visitor ID
- มักคงอยู่แม้ใช้ incognito
รู้จักอุปกรณ์เบื้องหลังทุกการเข้าสู่ระบบ ตรวจจับบอทและเบราว์เซอร์ปลอม และตรวจสอบทั้งหมดบนเซิร์ฟเวอร์ของคุณ
<script src="https://zenocdn.net/agent.js"></script>
<script>
const agent = FingerprintAgent.start({ endpoint: 'https://zenocdn.net', publicKey: 'pk_...' })
// Once the user logs in, hand the request ID to your server. A capped or
// failed identification sends none, and your server challenges the login.
agent
.get({ externalId: user.id })
.then(result => verifyOnServer(result.capped ? undefined : result.requestId))
.catch(() => verifyOnServer(undefined))
</script>// The quickstart's checks: no request ID, a failed read, an old or another
// user's event, then the starting bands.
if (!requestId) {
return askForSecondFactor()
}
const response = await fetch(`https://api.zeno.id/events/${encodeURIComponent(requestId)}`, {
headers: { 'Auth-API-Key': process.env.FP_SECRET_KEY! },
})
if (!response.ok) {
throw new Error(`Reading the event failed: ${(await response.json()).error}`)
}
const event = await response.json()
const fresh = Date.now() - new Date(event.createdAt).getTime() < 5 * 60_000
if (!fresh || event.externalId !== user.id) {
return askForSecondFactor()
}
if (event.bot === 'bad' || event.riskScore >= 15) {
// Refuse, or send it to review.
} else if (event.riskScore >= 9) {
return askForSecondFactor()
}curl "https://api.zeno.id/events/1792578564800.yU4Ety" \
-H "Auth-API-Key: sk_..."import { AgentError, start } from 'zeno-id'
// Once per page load, outside any component.
const agent = start({ endpoint: 'https://zenocdn.net', publicKey: 'pk_...' })
let requestId: string | undefined
try {
const result = await agent.get({ externalId: user.id })
requestId = result.capped ? undefined : result.requestId
} catch (error) {
if (!(error instanceof AgentError)) throw error
}เพิ่งเริ่มใช้ใช่ไหม? เริ่มด้วย: คำศัพท์สำคัญ เริ่มต้นอย่างรวดเร็ว การตรวจสอบเคสโดยไม่ใช้โค้ด
รวบรวมสัญญาณอุปกรณ์และตอบกลับด้วย visitor id และ request id
อ่าน ค้นหา และลบเหตุการณ์และผู้เข้าชมด้วย secret key
บอท VPN, Tor, incognito, การปลอมแปลง และเครื่องเสมือน พร้อมคะแนนความเสี่ยง
ตั้งแต่การระบุตัวตนครั้งแรกจนถึงการลบผู้ใช้