Skip to content

Guides

Free malicious domain blocklist for DNS filtering

Yes. ThreatCluster publishes its high-confidence malicious domains from the last 30 days as free blocklists, with no account and no key. Add https://threatcluster.io/api/iocs/public/domains.txt to Pi-hole, AdGuard Home or any DNS filter, and refresh it daily.

A DNS filter blocks a domain by refusing to resolve it, which stops phishing pages, malware downloads and command-and-control traffic for every device that uses it. The lists come in the formats DNS filters read: one domain per line, hosts file and AdGuard syntax.

Pick a format

# One domain per line (Pi-hole, AdGuard Home, most DNS filters)
https://threatcluster.io/api/iocs/public/domains.txt

# Hosts file: 0.0.0.0 domain (dnsmasq, /etc/hosts-style blockers)
https://threatcluster.io/api/iocs/public/hosts.txt

# AdGuard filter syntax: ||domain^ (also blocks subdomains)
https://threatcluster.io/api/iocs/public/adguard.txt

Each file starts with a comment header giving the time it was generated and the number of domains, then lists them alphabetically.

What is in it

  1. High-confidence malicious domains from the last 30 days: attacker infrastructure named in security reporting, each one checked before it is published.
  2. Shared services are left out. A domain belonging to a service that innocent users also rely on, or a site that is reported but serves no malware, would cause more harm blocked than not, so the default lists skip them.
  3. By category, if you want less: one list per category, for example phishing only:
    https://threatcluster.io/api/iocs/public/category/phishing/domains.txt
    The categories and their live counts are at /iocs.

Load it into your DNS filter

  1. Pi-hole: Lists → add domains.txt → Tools → Update Gravity. Tested step by step, with screenshots, on the Pi-hole page.
  2. AdGuard Home: Filters → DNS blocklists → Add a custom list with domains.txt or adguard.txt. See the AdGuard Home page.
  3. dnsmasq: download hosts.txt on a schedule and add it with addn-hosts=.
  4. pfBlockerNG (pfSense): Firewall → pfBlockerNG → DNSBL → DNSBL Groups → Add, then add domains.txt as a source with the format set to Auto. Run Update → Force Reload → DNSBL to load it.
  5. Unbound: there is no RPZ file yet; convert the plain list with a short script, include it from unbound.conf (include: "/etc/unbound/threatcluster.conf") and reload Unbound. Listed domains then answer NXDOMAIN.
    ( echo "server:"; curl -s https://threatcluster.io/api/iocs/public/domains.txt \
      | grep -v '^#' \
      | awk 'NF {print "local-zone: \""$1"\" always_nxdomain"}' ) > threatcluster.conf

Keep it current

The files are served with a one-hour cache and change daily. Most DNS filters refresh weekly by default; set yours to daily. In Pi-hole that is a cron line running pihole -g; in AdGuard Home, the filters update interval.

If a block is wrong

Allow the domain locally, then report it at /corrections. It comes off the list for everyone.

More than domains

IP addresses and file hashes have their own free files (ips.txt, hashes.txt) for firewalls and endpoint tools, and Suricata rules are at suricata.rules; see formats. To check a single domain, IP or hash instead, see check if an indicator is malicious; for a SIEM, the same indicators come over STIX and TAXII. The free files carry values only: the reason each domain was kept, its sources and categories come with an API key on Starter. Free to use in your own environment and in non-commercial community defence, with attribution; redistributing in a commercial product needs a licence.

Questions

Is there a free malicious domain blocklist for DNS filtering?

Yes. ThreatCluster publishes high-confidence malicious domains from the last 30 days as free text files in three formats: one domain per line, hosts-file (0.0.0.0) and AdGuard filter syntax. No API key is needed.

How often is it updated?

The files are regenerated continuously and served with a one-hour cache; the contents change daily as new attacker domains are reported. Refresh your DNS filter's lists at least once a day.

Will it block legitimate sites?

Every domain has passed validation, and domains of shared services that innocent users rely on are left out of the default lists. If a block is wrong, report it at threatcluster.io/corrections and it is removed for everyone.