Security

Control who can send data to your website, what gets collected, and who can sign in.

Only accept events from your websites

In your website's Settings → Security:

SettingEmpty (default)With entries
Allowed originsYour domain and its subdomains, plus Origin: null (in-app browsers, sandboxed frames)Also these origins; null and unknown origins get 403
Allowed IP addressesNo restrictionOnly these IPs (from cf-connecting-ip); others get 403
Origin entryMatches
databuddy.ccThat hostname
*.databuddy.ccThe apex and every subdomain
localhostLocal development
*Any origin

Matching is by hostname, any scheme or port. Requests without an Origin header, such as from servers, are always accepted, so treat origins as a filter for browsers, not proof of ownership; use allowed IPs to restrict servers. IP entries take single IPv4 or IPv6 addresses and IPv4 CIDR ranges like 192.0.2.0/24.

Let visitors opt out

import { optIn, optOut } from "@databuddy/sdk";

optOut(); // stops tracking now, clears local IDs, remembers the choice
optIn();

Global Privacy Control is always honored, and optIn() doesn't override it. Opting out doesn't delete data already collected; for that, use visitor data requests.

Collect less

<DatabuddyProvider clientId="your-client-id" autocapture={false} />

That turns off every automatic capture, including the default engagement events. Where consent is required, don't mount the provider or load the script until it's granted.

What Databuddy stores
Visitor IDIn localStorage, hashed with a daily rotating salt by default (your website's anonymizeVisitorIds setting)
Session IDIn sessionStorage, reused for 30 minutes
IP addressUsed for country, region and city, then dropped
Paths, titles, properties, errorsAs you send them, so keep personal data out

Protect your account

Turn on two-factor authentication in your Profile settings. Accounts that sign in with Google or GitHub set a password first.

Applies toEvery sign-in method: password, magic link, Google, GitHub
On turning it onEvery other device is signed out within minutes
Trusted browsersSkip the code for 30 days
Backup codesSingle-use; regenerating them voids the old set
Wrong codesLocked for 15 minutes after repeated attempts
EmailsSent whenever 2FA is turned on or off, or backup codes change

Lost your authenticator and backup codes

Still signed in somewhere? Turn 2FA off there with your password. Signed out everywhere:

Email support

From your account's address, write to support@databuddy.cc naming a website in an organization you own, whose domain you set at least 30 days ago.

Publish a DNS record

Add the TXT record we send at _databuddy-recovery.<your-domain> (not through a CNAME).

Wait two days

Signing in during that time cancels the request. Then 2FA is turned off, every device and connected app is signed out, and you can set it up again.

How your data is protected

In transitTLS 1.3 with hybrid post-quantum key exchange (X25519MLKEM768) in current browsers; TLS 1.2 fallback
Sensitive fieldsAES-256-GCM: profile names and emails, connected-app credentials, Slack tokens, webhook secrets
Analytics dataAES-256 encrypted disks, each unlocked by a key held on the other servers
Recordings, backups, source mapsEncrypted by our storage provider; maps and recordings are private to your website
RequestsValidated, size-limited and rate-limited
ProvidersListed with what they receive in subprocessors

Allow Databuddy in your CSP

script-src  https://cdn.databuddy.cc;
connect-src https://basket.databuddy.cc;

Merge these into your existing policy.

How is this guide?