botrefund.com

How BotRefund works under the hood without slowing your site or touching your design

如何将 BotRefund 添加到您的网站并进行正确配置以实现最佳效果。

第 01 部分

第 1 步:创建账户并选择您的范围

Before adding any script, you choose your operational setup during account creation on login.seatext.com. Here is how the registration fork works visually, and how your selection determines which loader tier you receive.

Depending on your registration choice and plan, the platform provisions one of three loader delivery tiers. Select an option below to view when to choose it and copy its exact installation snippet:

您应该选择哪种安装方式? 点击选项以查看其是否适合您的网站
第 1 层级:专用 botrefund.js 传感器(<6 KB 被动脚本) 免除 Cookie 横幅 • 零 DOM 编辑
✓ 如果符合以下情况,请选择此安装方式:
  • You only want ad fraud refunds: You run Google, Meta, or TikTok ads and want to detect fake bot clicks, protect your ad budget, and generate refund claim dossiers.
  • You have strict DOM & checkout protection rules: Your engineering or brand team requires that third-party scripts never modify page HTML, styling, layout, or checkout funnels.
  • You don't want cookie consent popups: Operates strictly under GDPR Art. 6(1)(f) cybersecurity legitimate interest. Sets zero marketing cookies and collects zero PII.
✕ 如果符合以下情况,请勿选择此安装方式:
  • You want SeaText AI growth tools: Automated full-site translation, AI CRO split testing, and visitor chat agents are permanently deactivated with this setup.
What gets installed: A lightweight <6 KB sensor (botrefund.js),在浏览器空闲期间静默运行,且不会阻塞主线程。
Tier 1 script: botrefund.js (<6 KB gzip • add to <head>)
<!-- Tier 1: BotRefund Dedicated Sensor (Ad Fraud Defense Only, <6KB Gzip) -->
<!-- 1. Dynamic Fastly Edge Sensor (Cloaked against Adblockers) -->
<script src="https://fthhkh7iahqirmy6lu9vvp.edgecompute.app/botrefund.js" async></script>

<!-- 2. Universal CDN Direct Fallback (Hosted on Cloudflare R2) -->
<script src="https://cdn.seatext.com/botrefund.js?id=YOUR_PROJECT_ID" async></script>
第 02 部分

端到端检测生命周期:时间轴瀑布流

BotRefund 如何逐步检测广告欺诈:从 0ms 异步加载到 10ms 边缘验证、动力学人类观察,以及 10-15 秒内完成的最终退款证据。

Legacy anti-bot tools run monolithic client scripts that synchronously query browser APIs during page load, harming Core Web Vitals (LCP and INP). BotRefund replaces this with a chronological, asynchronous waterfall: lightweight micro-probes execute during browser idle cycles, network signatures are verified at the edge, and final decisions converge naturally as visitors interact.

T = 0 ms • 初始页面加载
0 ms CPU 阻塞 • 无 LCP 影响
1. Asynchronous and non-blocking sensor injection

The lightweight sensor (botrefund.js, <6 KB gzip) loads asynchronously with defer. Your HTML, CSS, fonts, and primary application code render instantly without waiting for BotRefund.

  • Zero Core Web Vitals impact: 0ms delay to First Contentful Paint (FCP) and Largest Contentful Paint (LCP).
  • Zero DOM mutation: Never alters page elements, never injects visible widgets, and never changes checkout layouts.
T + 10 ms • 边缘网络入口
< 10 ms 边缘延迟 • 310+ 全球 PoP 节点
2. Edge TLS and TCP fingerprinting (Fastly / Cloudflare)

Before client code even finishes executing, our edge proxy inspects low-level network packets to catch sophisticated residential proxies and spoofed browser clients.

  • TLS Handshake Invariants: Natively extracts JA3 / JA4 client cipher fingerprints and verifies against genuine browser signatures.
  • HTTP/2 & HTTP/3 Multiplexing: Analyzes stream dependency trees, frame priority order, and TCP window header anomalies.
  • First-Party Edge Cloaking: Routes traffic through your first-party domain, guaranteeing 100% immunity against ad blockers and bypassing Safari ITP 7-day cookie caps.
T + 50-300 ms • 浏览器空闲周期
< 8 ms CPU 预算 • 即时像素防御
3. Headless browser and environment integrity micro-probes

Scheduled strictly via requestIdleCallback during idle frame intervals. Probes the browser environment to detect automated scrapers, emulators, and headless test runners.

  • Automation Framework Detection: Unmasks Puppeteer, Playwright, Selenium, and Chrome DevTools Protocol (CDP) overrides.
  • Hardware & GPU Invariants: Verifies unmasked WebGL GPU renderer strings, canvas anti-aliasing digests, and device memory consistency.
  • Immediate Conversion Pixel Defense (<12ms): If a confirmed automated bot is identified, ad conversion tags (Google Ads, Meta Pixel) are instantly suppressed in <12ms, stopping fake bot conversions from poisoning your ad bidding algorithms.
T + 1-10 s • 自然交互
被动监听 • 不检查任何 PII
4. Biomechanical and kinetic human motion analysis

As a visitor navigates, passive listeners analyze organic human motion physics. Real humans produce natural micro-variations; bots produce mechanical straight lines or zero-second clicks.

  • Sub-Pixel Kinetic Physics: Evaluates mouse tremor entropy, gesture curvature torque, scroll momentum, and touch contact area.
  • Hardware Accelerometer Reading: Samples natural device tilt and Earth gravity vectors (~9.81 m/s²) on mobile devices.
  • Privacy Guarantee: Form fields, passwords, keystroke content, and user-typed text are strictly ignored and never read.
T + 10-15 s • 共识与裁决
1,500 ms 故障开放断路器
5. ML consensus: Ephemeral memory discard or sealed refund dossier

Our local ONNX machine-learning consensus engine evaluates a 25-feature normalized vector and routes the session to one of two final paths:

✓ Path A: Verified human visitor Ephemeral Memory Discard. Once human consensus is reached, all raw sensor readings are permanently deleted from volatile RAM within seconds. Zero PII is stored. GDPR Art. 6(1)(f) compliant.
✗ Path B: Confirmed bot click fraud Cryptographically Sealed Refund Dossier. Captures ad attribution tokens (gclid, fbclid, msclkid,时间戳、ASN、取证触发器)可用于Google和Meta的一键退款索赔。
第 03 部分

Choose what counts as a conversion

Start with the two free ways to define success. If you want Seatext to understand the whole page and identify conversion intent for you, activate the paid AI option when your plan allows it.

Site-wide vs. Page-Specific Configuration

You are editing conversion settings for the entire website. Select an individual page to inspect or fine-tune its conversion targets. Manage and test your live conversion configuration at login.seatext.com/welcome/conversion-settings.

Your conversion options

Use the free options for straightforward tracking. The paid option understands page intent and lets you fine-tune the targets it finds.

Option 01 • FREE No code required
Automatic detection
Recognise common events

Seatext watches for recognisable purchase, contact, sign-up, login, and form interactions. Get useful conversion counts without adding a marker or writing code.

✓ Common actions • Out-of-the-box tracking
Option 02 • FREE HTML or JavaScript
Manual conversion tracking
Define exactly what matters

Mark an important button, form, or success state yourself when your conversion has a custom business rule that automatic detection cannot see.

✓ You stay in control • HTML attribute or JS API
Option 03 • PAID AI 100% Free Agent
Let AI understand the page
High-intent conversion discovery

Paid AI reads the page structure and understands which buttons, forms, links, and flows represent real conversion intent—not ordinary navigation.

✓ Page-aware • AI-selected • Fine-tunable
Inspect & fine-tune a page
Choose a page to inspect in the visual editor or rebuild its conversion targets (e.g. 8 active targets • refreshed until 11/23/2026). Turn on the small switch in the blue card to activate AI analysis for the selected configuration scope.
Open Conversion Settings →

Manual implementation examples

Each example shows how to use Option 2 (Manual conversion tracking). One full-width example per row keeps every snippet readable and ready to copy.

1. For non-developers (WordPress, Wix, Shopify, Squarespace) Zero JavaScript required

Add seatextconversion to button text in WordPress, Wix, or Shopify. Visitors see only the normal button label:

In your editor:
<button>Buy Now seatextconversion</button>
Visitors see:
<button>Buy Now</button>
2. For developers (HTML data attribute & React components) HTML • JSX • Vue

Add data-seatextconversion to any button, form, link, or component that represents a completed conversion action:

HTML & React Component Attribute
<!-- Plain HTML -->
<button data-seatextconversion>Buy Now</button>

<!-- React / Next.js Component -->
<Button data-seatextconversion>Finish</Button>

<!-- Contact or Checkout Form -->
<form action="/submit" data-seatextconversion>
  <input type="email" name="email" required />
  <button type="submit">Start Trial</button>
</form>
3. Advanced JavaScript (SPAs, APIs, & Async Success Handlers) Programmatic API

Call the global method after a successful Single Page Application flow, fetch/Axios API response, or any custom business rule:

JavaScript Programmatic Call
// Simple programmatic conversion trigger:
window.seatextConversion();

// Example inside an asynchronous checkout or lead form handler:
async function handleCheckoutSuccess(order) {
  try {
    const response = await api.submitOrder(order);
    if (response.ok) {
      // Notify Seatext and record verified conversion
      if (typeof window.seatextConversion === 'function') {
        window.seatextConversion();
      }
      navigateToReceipt(response.orderId);
    }
  } catch (err) {
    console.error('Checkout error:', err);
  }
}
Implementation Tip: Unified Multi-Layer Tracking

Manual tracking works alongside automatic detection and paid AI targets, so you can make critical business events explicit while Seatext discovers other high-intent paths. If a confirmed bot triggers a conversion element, BotRefund's Pixel Guard blocks the ad platform pixel from receiving fake data while logging the fraud evidence for your refund claim.

第04节

Runtime lifecycle and single-call teardown: seatext.destroy()

How to programmatically pause or tear down the sensor, flush in-flight telemetry to the server, and clean up all listeners in a single command.

When developing Single Page Applications (React, Vue, Angular, Svelte), testing user opt-out flows, or unmounting pages, you can cleanly stop all Seatext and BotRefund processes with a single global command.

It’s a single call: seatext.destroy()

Calling seatext.destroy() immediately recalculates dynamic biometrics, flushes the final bot detection verdict and session recording chunk to the server via navigator.sendBeacon (with keepalive fallback), disconnects all DOM MutationObservers, clears all background intervals/timers, detaches all passive biometric and Form Guard listeners, and sets Pixel Guard to PASSTHROUGH.

Single-Call Teardown Command
// It’s a single call to flush data and terminate all background processes:
seatext.destroy();

// Or call with an optional audit reason:
seatext.destroy({ reason: 'user_opt_out' });

// Also accessible on window or botrefund namespace:
window.seatext.destroy();
window.botrefund.destroy();

Alternative stop signals (Events & PostMessage)

In addition to the direct function call, both seatext.js and botrefund.js listen for stop commands across custom DOM events and cross-frame messages:

Trigger mechanism Code example Best used for
Single Programmatic Call seatext.destroy() SPA unmounting, user opt-out buttons, custom app logic.
Custom DOM Event window.dispatchEvent(new CustomEvent('seatext:stop')) Google Tag Manager (GTM), Consent Management Platforms (CMP).
Unified Stop-All Event window.dispatchEvent(new CustomEvent('seatext:stop-all')) Immediately stops both seatext.js and botrefund.js runtimes.
Cross-Frame PostMessage window.postMessage({ type: 'seatext:stop' }, '*') Embedded iframes, Chrome extensions, or web-worker communications.
第05节

180+ 种检测向量分类法与机器学习模型

BotRefund 评估的生物识别、执行环境、硬件和网络信号的架构分解,结合 ONNX 机器学习共识模型。

Sophisticated click farms and automated scrapers easily bypass IP blacklists and user-agent checks using rotating residential proxies and stealth browser forks (Undetected Chromedriver, Puppeteer Stealth, Playwright). BotRefund inspects 180+ physical device invariants and behavioral entropy vectors grouped into four distinct forensic layers:

取证层 分析的信号 取证标志示例 规避陷阱机制
1. 生物力学行为熵 对亚像素鼠标轨迹、欧几里得曲率方差、触摸接触面积和旋转扭矩偏转、3 轴加速度计微震颤 (~9.81 m/s2) 进行持续被动采样。 MOUSE_ENTROPY_LOW EUCLIDEAN_STRAIGHT_VECTOR ZERO_LATENCY_SUBMISSION PHYSICAL_MOTION_MISSING 机器人以编程方式注入人工点击。合成鼠标事件缺乏自然的生理手部震颤,熵得分 < 0.15。桌面端的零移动提交者会被标记。
2. 执行环境和反隐身陷阱 Chrome DevTools Protocol (CDP) runtime artifacts, window.cdc_变量,console.debugeval 泄漏、Playwright/Puppeteer 执行存根,navigator.webdrivergetter 代理陷阱,原生函数原型字节码长度。 CDP_DEBUGGER_LEAK WEBDRIVER_GETTER_TAMPERED PROTOTYPE_TOSTRING_PROXY EVAL_BYTECODE_MISMATCH 当隐身框架掩盖navigator.webdriver = false通过Object.defineProperty,BotRefund 审问Function.prototype.toString.call()以及 V8 原生字符串字节码长度(33 vs 37 字节)以暴露篡改。
3. 硬件与GPU拓扑完整性 WebGL未掩码渲染器字符串提取、SwiftShader/llvmpipe软件光栅化检测、canvas 2D非零环绕规则抗锯齿摘要、WebAudio振荡器相位漂移及硬件时钟差异、字体边界框一致性。 SWIFTSHADER_RENDERER CANVAS_WINDING_POISON AUDIO_CLOCK_DRIFT ZERO_PLUGINS_DESKTOP 运行在AWS或Hetzner上的服务器虚拟机缺乏物理GPU,回退到SwiftShader软件渲染。Canvas摘要验证亚像素字体光栅化是否与声明的操作系统字体表匹配。
4. L4/L7网络与基础设施一致性 L4 TCP SYN包选项指纹识别(端口8443 pcap嗅探)、TLS密码套件顺序及JA3/JA4 MD5哈希、HTTP/2帧优先级结构、令牌化权威DNS泄漏挑战匹配解析器IP与HTTPS对端。 DNS_LEAK_COUNTRY_MISMATCH TCP_SYN_TTL_ANOMALY PUBLIC_PROXY_LISTENER HEADER_HASH_DISCREPANCY 当访客的DNS解析路径穿越与其HTTPS TCP对端不同的ASN或国家,或TCP SYN初始TTL与客户端操作系统矛盾时,住宅代理规避即被暴露。

Machine learning consensus architecture

Rather than relying solely on brittle static thresholds that attackers can reverse-engineer, BotRefund utilizes a calibrated ONNX Machine Learning Inference Engine running locally within our Go backend:

  • 25-Dimensional Normalized Feature Vector: Telemetry is condensed into a 25-feature tensor spanning mouse curvature variance, GPU vendor indices, audio buffer hashes, TCP window scales, and timing deltas.
  • 协同双引擎决策:
    1. Deterministic Heuristic Veto: Catches blatant automation markers (e.g. active CDP debuggers, SwiftShader renderers) with 100% precision.
    2. Trained Anomaly Classifier: Evaluates subtle, multi-variable correlation discrepancies across residential proxy clusters.
  • False-Positive Suppression (<0.01% Error Rate): Calibrated against hundreds of thousands of human sessions. Legitimate users on corporate VPNs or privacy browsers (e.g. Brave) produce natural biomechanical micro-tremors and consistent hardware tables, preventing false rejections.
第06节

数据隐私、保留与零PII不变量

面向企业安全委员会和数据保护官的数据处理不变量技术规范。

零PII不变量:无个人数据序列化

BotRefund is architected for zero personally identifiable information (Zero-PII). Client sensors inspect physical device hardware and biomechanical interaction physics only. The sensor never reads, serializes, or transmits form input values, passwords, credit card numbers, email addresses, or document text. Form input nodes are explicitly ignored in our DOM event listeners.

技术数据保留政策

流量分类 保留与存储生命周期 技术理由与法律依据
Verified human traffic
Legitimate website visitors
临时易失内存丢弃。所有原始行为遥测和硬件信号在10-15秒投票窗口内严格存在于易失RAM中,并立即丢弃。不保留任何会话记录或硬件配置文件。 仅匿名聚合指标计数器(total_clean_sessions + 1)为计费透明度和转化率报告递增。
Confirmed malicious bots
Click fraud & automated scrapers
加密密封取证档案。详细证据(CDP标志、虚拟GPU字符串、机器人鼠标向量、时间戳和广告跟踪ID如gclid, fbclid,或msclkid)被保留。 法律要求为广告网络(Google Ads、Meta Ads、Reddit Ads)组装经认证的审计级退款索赔档案。受GDPR第6(1)(f)条“合法利益”(序言47欺诈预防)。

监管与合规标准

  • GDPR & CCPA Clean: Because BotRefund never builds cross-site marketing profiles, sells visitor data, or handles PII, it operates cleanly within EU and US privacy laws under GDPR Article 6(1)(f).
  • Exemption from Cookie Consent Banners: Dedicated BotRefund deployments (botrefund.js) do not set marketing tracking cookies or process PII, allowing operation without user cookie banner consent prompts.
SECTION 07

安全控制与故障开放弹性SLA

企业基础设施控制、多租户隔离、加密标准和故障开放可用性保证。

安全维度 实现架构 审计状态
多租户隔离 加密项目密钥命名空间(projectId)。遥测信标、API令牌和档案严格分区。跨租户访问在结构上不可能。 通过 / 分区
传输与静态加密 入口端点强制仅TLS 1.3严格HSTS。存储的取证机器人档案使用AES-256静态加密AES-256. 通过 / TLS 1.3 + AES-256
无状态边缘沙箱 遥测在内存安全边缘运行时(Cloudflare Workers V8隔离、Fastly Lucet/Wasm)处理。零磁盘I/O;令牌上限120秒TTL。 通过 / V8隔离
客户端执行沙箱 无特权、只读浏览器执行。无法访问自身令牌之外的Cookie,无法触碰localStorage外部_btr_*,执行零远程eval(). 通过 / 只读
故障开放弹性SLA 硬编码1,500ms断路器超时。通过navigator.sendBeacon。若上游网络降级,传感器静默丢弃。源站渲染和结账永不阻塞。 通过 / 100%故障开放
SECTION 08

企业概念验证(POC)框架

一个结构化、无风险的四阶段评估模型,供企业工程和绩效营销团队在商业承诺前验证检测准确性。

1

Stage 1: Shadow audit

Deploy the sensor in passive Shadow Mode. Operates silently in the background: zero blocking, zero CAPTCHAs, and 0ms main-thread degradation to establish baseline invalid traffic.

2

Stage 2: First 100 bots CSV

Export certified forensic logs containing exact ad click tokens (gclid, fbclid), click timestamps, ASN routing, and triggered technical flags (CDP leaks, virtual GPUs).

3

Stage 3: Ad refund claim

Submit the forensic evidence package to your Google Ads or Meta Ads representative (or use 1-click packet generator). Our customers achieve an 83% claim approval rate.

4

Stage 4: Active defense

Activate real-time conversion pixel defense to stop invalid clicks from firing ad network conversion pixels, defending Meta and Google smart bidding algorithms.

技术尽职调查与安全评估矩阵

审计维度 BotRefund架构保证 评估结论
主线程性能 初始包<6KB gzip。执行分块requestIdleCallback分块,<8ms CPU预算。对Core Web Vitals(LCP、INP、CLS)0ms影响。 通过 / 零影响
系统可用性与爆炸半径 100%故障开放设计。断路器1,500ms超时。若BotRefund网络超时,客户网站正常运行,0错误抛出。 通过 / 零爆炸半径
PII与隐私合规 零PII收集。人类流量遥测在内存中临时处理并丢弃。取证档案仅针对确认广告欺诈保留,依据GDPR第6(1)(f)条。 通过 / GDPR与CCPA合规
广告拦截器与Safari ITP防御 第一方边缘代理(BotRefund开发的自定义Cloudflare Worker、Fastly集群)通过您自己的域路由,绕过广告拦截器和Safari 7天存储上限。 通过 / 第一方免疫
误报缓解 协同集成,结合确定性启发式否决与25特征ONNX ML评分及10-15秒生物力学投票。误报率<0.01%。 通过 / <0.01%错误率
内容安全策略(CSP) 严格CSP合规。仅需connect-src https://ingress.botrefund.com(或'self'若使用边缘代理)。无需unsafe-eval。 通过 / 严格CSP就绪
直接CTO与工程对话

需要定制的 Cloudflare Worker 或架构咨询?

我们的欺诈取证工程团队可审查您的路由架构,提供定制的 Cloudflare Worker 配置,或签署相互保密和数据保护协议。