documentation
Open domain and country data
Sources, licenses, provenance and refresh without image rebuilds.
domains.json is a versioned public-data snapshot, not visitor history. It includes
source revisions, retrieval/expiry times, license texts and license SHA-256 values.
It contains no email addresses, browser profiles, account associations or IP history.
Sources and scope
| Source | License | Meaning |
|---|---|---|
| disposable-email-domains | CC0-1.0 | Community-listed disposable email domains. The upstream warns that entries can become outdated; a match is evidence, not device/user fraud proof. |
disposable/disposable-email-domains (domains_source_map.txt) | MIT | Only the domains the aggregator reads directly from live temporary-mail services (their domain pickers and APIs). Its copies of published community lists are skipped: in a labelled evaluation those copies flagged real organisations, while about 98% of live-service domains routed mail to temporary-mail servers. A snapshot older than 3 days is refused. |
| FakeFilter | BSD-3-Clause | Domains observed by monitored temporary-mail providers within the last 14 days. Older observations are not imported. |
| is-a.dev | MIT | User registrations beneath is-a.dev; the apex is not a user subdomain. |
| is-a.bot | MIT | User registrations beneath is-a.bot; the apex is not a user subdomain. |
reviewed-free-subdomains.json | CC0-1.0 | First-party factual curation, currently DuckDNS, with primary-provider evidence and an explicit review expiry. No vendor API results are used. |
reviewed-public-mailboxes.json | CC0-1.0 | First-party review of shared mailbox domains (free webmail, paid consumer mail, large ISPs). Each entry cites the provider's page and the MX routing to that provider at review. Exact domains only; these domains are also never accepted as disposable listings from upstream sources. |
reviewed-relays.json | CC0-1.0 | First-party review of forwarding-alias domains, with the provider's documentation and MX routing at review. Matches subdomains too. |
mx-providers.json | CC0-1.0 | MX host suffixes of mail providers, gateways and forwarders, each documented or owned by the provider (an ownership note explains undocumented ones), plus each provider's consumer-only hosts and email-alias forwarding hosts, with the evidence that justifies them. Bundled in the API image, not in the refreshed snapshot. |
disposable-infrastructure.json | CC0-1.0 | MX host suffixes that serve throwaway domains in bulk, with how many listed domains and popular sites use each. Measured from public disposable lists and the Tranco ranking (used offline as a control; none of its data is included), then reviewed. Bundled in the API image, not in the refreshed snapshot. |
reviewed-domain-disputes.json | CC0-1.0 | Exact domains requiring review because first-party operator evidence conflicts with a blanket disposable classification. These return unknown/conflict, not clean or false. |
IANA RDAP bootstrap (rdap-dns.json) | IANA registry data | Which registry answers RDAP queries for each TLD. Not a domain list: the API uses it only to route registration-date lookups. Refreshed by the weekly data workflow. |
Porkbun public pricing endpoint (tld-prices.json) | Registrar price list (facts, no copyright claim) | Which generic TLDs have a first-year registration price of 3 USD or less, generated by update-tld-prices.mjs. Only the derived TLD names are stored, not prices. Country codes and IDN TLDs are never cheap. One registrar, so a TLD it does not sell is unknown. Prices move; the weekly data workflow keeps it current. Not a domain list. |
IANA root zone database (whois-servers.json) | IANA registry data | The WHOIS server of each TLD without RDAP, generated by update-whois-servers.mjs. It keeps servers that resolve and skips registries that refuse anonymous queries (.ch, .li, .es, .hu). Not a domain list. Refreshed by the weekly data workflow. |
| Matomo referrer-spam-list | Public Domain declaration | Referrer-spam hostnames only. This is not an email-sending reputation database. |
The spam result always carries scope: referrer_spam. It must not be advertised
as comprehensive email spam, phishing or malware detection. Disposable and free
subdomain matches do not set spam. A free subdomain is not evidence of abuse.
Coverage is deliberately bounded: the free-subdomain data currently covers three namespaces, not all DDNS/free-hosting services. MISP's dynamic-DNS list is not used: it mixes provider types and deliberately retains retired domains. The Public Suffix List establishes boundaries, not whether a provider is free.
StopForumSpam, Spamhaus and UserCheck data are not imported. Their access or redistribution restrictions do not meet this snapshot's open-data requirement. No per-domain result scraping, API-key enrichment or bulk vendor-result copying is performed.
Matching and corrections
The runtime uses complete DNS-label suffixes, never substring matching or naive
last-two-label extraction. A listed tenant is not promoted to its parent. Mozilla
PSL wildcard/exception and private-suffix boundaries protect registries/shared
hosting from broad disposable/spam matches. In particular, a public-suffix rule in
an upstream spam list cannot classify every domain below that suffix. That source
reports public_suffix_excluded rather than hiding the safety exclusion.
Free-subdomain namespaces match strict children only; their operator apex gets
value: false, status: provider_domain. A most-specific allowlist entry suppresses
broader matches from the same source. Operators may add reviewed allowlist
entries to a local snapshot; the current upstream disposable source does not
publish an allowlist. Conflicting fresh sources return null with conflict.
Reviewed disputes use a separate disposable_review source, primary-evidence links
and a content revision. Only the exact named domains are withheld; this is not a
suffix-wide exemption or a trusted-mailbox assertion. The source reports
disputed; the disposable fact becomes null with conflict/review_required.
An expired review remains pending with stale provenance instead of restoring a
potentially false accusation. Remove a pending record only after resolving the
evidence. An operator-maintained allowlist is a different, explicit policy choice.
Report upstream mistakes through the linked projects; do not turn unreviewed user submissions into permanent global accusations.
An unlisted domain has value: null, status: not_listed, not false or a clean
verdict. Expired/future-dated evidence stays unknown. Source timestamps describe
retrieval and the source commit, not the last observation of every individual
entry. Refreshing a list does not prove that all its domains remain unchanged.
Refresh without rebuilding an image
From a checkout, with Node 24+ and outgoing HTTPS access:
node api/update-domain-data.mjs --output /srv/openfingerprint/domains.jsonThe updater uses only fixed public GitHub sources. It resolves immutable revisions, checks reviewed license hashes, bounds response sizes/timeouts, normalizes IDNs with Node's IDNA implementation and rejects URLs/invalid hostnames. It replaces the output atomically only after all inputs pass. A failed fetch or license change keeps the previous file. Review license changes before updating the expected hash.
Fetched feeds expire after seven days. Run the updater daily from a separate operator job or host; do not give the API Internet egress. FakeFilter additionally requires a feed generated within three days, valid observation timestamps and records last seen within 14 days at snapshot creation. Its seven-day snapshot expiry bounds included observations to at most 21 days old while fresh. This is provider-observation freshness, not proof of mailbox ownership or human identity. A stale/malformed feed aborts the update without replacing the previous file.
First-party namespace curation and dispute reviews expire after 30 days. Their review dates are not advanced by an automatic refresh. Re-review the primary evidence before advancing them. Pending disputes continue to require review when overdue; stale namespace curation cannot produce a positive free-subdomain verdict.
Mount the output read-only into the API and set OPENFINGERPRINT_DOMAIN_DATA to
its in-container path. The API checks the file every minute and swaps in a changed
snapshot only after it parses; a broken file is rejected and counted in metrics
while the last valid snapshot keeps serving until it expires. No restart or image
rebuild is needed. Do not replace this public cache with visitor storage, put
secrets in it, or grant the API Kubernetes access. Without an override, the API
uses its bundled snapshot, which has the same expiry policy and must also be
refreshed when stale.
In Kubernetes, node api/update-domain-data.mjs --configmap <name> publishes the
snapshot to a ConfigMap through the in-cluster API instead (the
ghcr.io/mokto/openfingerprint-domain-updater image runs exactly this). The
chart schedules it every six hours and mounts the ConfigMap
into the API. ConfigMaps hold at most 1 MiB; today's snapshot is about 230 KB.
The updater ignores any listing of a protected major mailbox or mail-infrastructure
domain (for example gmail.com or google.com), its subdomains and its parents,
and logs what it ignored. With MX inference, one such upstream mistake would accuse
every domain whose mail those providers route.
A weekly GitHub workflow opens a fix(data) pull request with the refreshed
bundled snapshot and per-source changes, and merges it once CI passes, so
Release Please proposes an API release and release images and self-hosters start
from current data. A failed CI run leaves the pull request open for review.
A missing/malformed override produces unknown domain results, never a silent
fallback to the bundled data. Browser verification remains available. /health
is still process liveness, not a guarantee of dataset freshness. The API has no
domain-authority score. MX hosts from its DNS lookup are matched against the same fresh disposable sources (mx_listed);
this covers new domains routed to listed providers, not providers absent from
every source.
Checks
node api/test-domain-updater.mjs
pnpm api:checkThese use local fixtures, with no feed download in CI. The HTTP check exercises
fresh, stale, invalid and missing snapshots and verifies that browser verification
still works. License texts stay in the source snapshot and
in the release image at /usr/share/licenses/openfingerprint-api/domain-data.json.
The application's MIT license does not override any source's terms. The BSD
copyright, redistribution conditions and no-endorsement clause are retained in
the snapshot and release image.
VPN and datacenter ranges
The vpn_ranges and datacenter_ranges network sources are
X4BNet lists_vpn, declared MIT by X4B and built from
the IPLocate IP-to-ASN database under
CC BY-SA 4.0. IPLocate requires a credit
link where the data is used, for example
IP address data powered by <a href="https://www.iplocate.io">IPLocate.io</a>. Carry it
through downstream consumers, and do not redistribute the ranges (network.json) without
meeting ShareAlike. See the attribution note.
IP country data
DB-IP Country Lite provides monthly IPv4/IPv6 country estimates in MMDB format under CC BY 4.0. It has reduced coverage and accuracy compared with DB-IP's commercial database. Country estimates do not establish a person's location or whether an IP is safe. No per-IP vendor API is called.
DB-IP requires attribution. Its stated web-use terms require a link to
https://db-ip.com/ on pages displaying or using the results, for example
<a href="https://db-ip.com/">IP Geolocation by DB-IP</a>. Carry that attribution
through downstream consumers; the API's source metadata is not a substitute for
the page link. The application's MIT license does not override these data terms.
The API returns unmodified country codes, along with database build/expiry times
and SHA-256 provenance; it does not redistribute a transformed country dataset.
Build the API first when running from a checkout; the updater reuses its native
MMDB validator instead of maintaining a second parser. Installed binaries can be
found on PATH as openfingerprint-api, or selected with
OPENFINGERPRINT_COUNTRY_VALIDATOR.
cargo build --manifest-path api/Cargo.toml --locked
OPENFINGERPRINT_COUNTRY_VALIDATOR="$PWD/api/target/debug/openfingerprint-api" \
node api/update-country-data.mjs --output /srv/openfingerprint/country.mmdb
# Add --loop for daily refresh, with hourly retry after a failure.Set OPENFINGERPRINT_COUNTRY_DATA to the read-only in-container MMDB path. No
country database is bundled in Git or the API image. The updater discovers the
latest published MMDB on DB-IP's download page, downloads only from the fixed
HTTPS DB-IP hosts, rejects redirects, bounds time/size and decompression, checks
the upstream SHA-1 against the uncompressed file, and atomically replaces the
output only after the API binary verifies its structure, type, timestamps and
nondecreasing build date against the existing file. Invalid, expired, future-dated
or older downloads cannot overwrite the last-good file, including across API
restarts. SHA-1 is an integrity check, not an independent signature: authenticity
relies on HTTPS and the upstream publisher. A failed refresh leaves the previous
file. The API also verifies the MMDB structure/type and build timestamp
before swapping it in, rejects older builds, and retains the last valid database
when a changed file is rejected. It reloads every minute by default; no restart is
needed. A build older than 62 days stops producing country results even if downloads
keep failing. Refreshing an unchanged database never advances its expiry.
The chart enables a daily country-updater sidecar using the existing updater
image, without credentials or Kubernetes tokens. An MMDB exceeds the ConfigMap
size limit, so it uses a bounded shared emptyDir instead; the API mounts it
read-only. New pods return unknown until their first successful download. The
volume is not durable and every replica downloads independently. The sidecar's
public-HTTPS NetworkPolicy allowance also applies to the API container because policy is
pod-scoped. To remove country-download egress, set countryData.enabled=false and
supply an externally refreshed, read-only database through your own deployment.
The separate RDAP HTTPS allowance remains; restrict networkPolicy.rdapTo
independently if registry access must also be limited.
Run node api/test-country.mjs after building the API for offline fixture checks.
Evaluating quality
Monitor-derived samples test ingestion coverage, not independent accuracy once the same monitored source is integrated. Do not present a re-run of those examples as a held-out benchmark. Mailbox/ISP catalogue labels are also proxies: an operator may offer temporary inboxes or both persistent accounts and disposable aliases. Confirm disagreements with first-party service documentation; neither anonymous signup nor optional alias deletion establishes temporary mailbox lifetime. Keep source-labelled, independently reviewed and unresolved cases separate.