# Data sources

> The lists behind every signal, who maintains them, and how often Heimdal refreshes each one.

Heimdal's signals are built from openly licensed lists, merged with entries that Heimdal maintains itself. This page names every public source. Each list remains the work of its maintainers.

## Sources

| Signal           | Source                                                                                        | Refreshed |
| ---------------- | --------------------------------------------------------------------------------------------- | --------- |
| Disposable email | [disposable/disposable-email-domains](https://github.com/disposable/disposable-email-domains) | Daily     |
| Disposable email | [ivolo/disposable-email-domains](https://github.com/ivolo/disposable-email-domains)           | Daily     |
| Disposable email | [7c/fakefilter](https://github.com/7c/fakefilter)                                             | Daily     |
| Tor              | [Tor Project bulk exit list](https://check.torproject.org/torbulkexitlist)                    | Hourly    |
| Open proxy       | [monosans/proxy-list](https://github.com/monosans/proxy-list)                                 | Hourly    |
| Network of an IP | [sapics/ip-location-db](https://github.com/sapics/ip-location-db), the `origin-asn` database  | Daily     |
| Network of an IP | [iptoasn.com](https://iptoasn.com), used when the source above cannot be fetched              | Daily     |
| VPN              | [X4BNet/lists_vpn](https://github.com/X4BNet/lists_vpn), the VPN network list                 | Daily     |
| VPN              | [O-X-L/risk-db-lists](https://github.com/O-X-L/risk-db-lists), `kind_vpn`                     | Daily     |
| Bad ISP          | [X4BNet/lists_vpn](https://github.com/X4BNet/lists_vpn), the datacenter network list          | Daily     |
| Bad ISP          | [brianhama/bad-asn-list](https://github.com/brianhama/bad-asn-list)                           | Daily     |
| Bad ISP          | [O-X-L/risk-db-lists](https://github.com/O-X-L/risk-db-lists), `kind_hosting`                 | Daily     |

"Network of an IP" is the map from an address to the network that announces it. It supplies `ip.asn` and `ip.isp`, and it is how the `vpn` and `bad_isp` signals find the network to look up. The VPN lists also feed `bad_isp`, as [Signals explained](https://heimdal.codebrewerz.com/docs/reference/signals/#bad-isp) describes.

From the X4BNet project Heimdal uses the lists of network numbers only, not the generated IP ranges.

Every source is a list that Heimdal downloads and keeps on its own servers. Nothing from your checks is sent to a third party. The one exception is the email's domain, never the address: Heimdal looks up its MX records in DNS, like any mail server would, to recognise fresh [disposable domains](https://heimdal.codebrewerz.com/docs/reference/signals/#disposable-email).

## Heimdal's own entries

Heimdal maintains private additions for four of the signals: disposable domains, proxy addresses, VPN networks and risky networks. They are merged with the public lists at every refresh and apply to every customer. A response does not say whether a signal came from a public list or a private entry.

Your own [custom lists](https://heimdal.codebrewerz.com/docs/custom-lists/) are separate. They apply to your account only and are reported under `custom.matched`.

## What the lists hold

These are floors, not exact counts. Heimdal checks after every refresh that the live data stays above them.

| List                                      | At least |
| ----------------------------------------- | -------- |
| Disposable email domains                  | 150,000  |
| Risky networks (hosting, datacenter, VPN) | 2,000    |
| IP ranges that belong to VPN networks     | 7,000    |

## How refreshing works

- Heimdal looks for updates every hour. The Tor and proxy lists are fetched again once their copy is an hour old, every other list once its copy is a day old.
- A refresh builds a complete new set of lists and swaps it in at once. A check never sees a half-updated state.
- A download is checked before it is used. One that is empty, far smaller than expected, or under half the size of the last good copy is rejected, and the last good copy stays in use.
- After a restart Heimdal loads its saved copies first, so it can answer without waiting for the network.

Until the disposable-domain list, the Tor list and the network map have each loaded once, the API answers `503 lists_unavailable`.

## Report a wrong entry

If a domain or a network is listed wrongly, the lasting fix is at the source: report it to the maintainers of the list that carries it. The correction reaches Heimdal at the next refresh, within a day for most lists.
