Open-Source Tools

One Free Hosts File for Adware and Malware: StevenBlack/hosts

Back to Blog & News
Person reviewing a text file on a laptop to set up the StevenBlack hosts file blocklist

The base list in StevenBlack/hosts holds 80,616 entries, and the README says it was last updated on November 30, 2026. It’s free, MIT-licensed, and does one job: it merges several reputable hosts files into a single list with duplicates removed.

The README is blunt about what the project is: “a hosts file aggregator.” It gathers lists rather than writing most entries from scratch.

What is the StevenBlack hosts file?

Plain explanation (not from the README): a hosts file is a text file your computer can check when it looks up a website name. Add a domain to a blocklist like this one, and the device is steered away from reaching it.

The repository describes itself as consolidating and extending hosts files “from several well-curated sources.” Its topics include ad-blocker, malware, ransomware, privacy and security.

The default variant, called Unified hosts, is labeled adware + malware in the README. You can add extensions for fake news, gambling, porn and social media.

Who is it useful for?

  • Everyday users who want a ready-made adware and malware domain list instead of building one by hand.
  • Parents and school IT staff who want category blocks. The project offers gambling, porn and social variants.
  • Small-business owners who want to cut off known bad domains on a shared machine.

Those are our readings of the categories on offer. The README doesn’t describe these audiences itself.

Key features

  • 31 variants in addition to the base file, according to the README, with and without the unified hosts included.
  • Deduplication. Several lists are merged and repeats are removed.
  • A non-GitHub mirror link for each variant. The README says it’s for hosts file managers that don’t work with GitHub download links, such as Hostsman for Windows.
  • Active upkeep. Release 3.16.134 came out on November 30, 2026. Its notes mention updates from someonewhocares.org and KADhosts, a refreshed yoyo.org list and one added domain.

A few variants, per the README

Recipe Unique domains
Unified hosts (adware + malware) 80,616
Unified + fakenews 83,139
Unified + social 84,728
Unified + gambling 87,684
Unified + porn 157,048
social only 3,808

The README table lists more combinations than this. A name without “Unified hosts” in front, like social, is that category on its own.

Getting the file and where to find setup steps

The public README sections we checked explain the variants and download links. They don’t include step-by-step instructions for installing a list on Windows, macOS or Linux, and they don’t list supported platforms. So this guide doesn’t invent those steps. The README names Hostsman for Windows as one hosts file manager that works with the mirror links.

You have two ways to get the files. The first is to open the table in the repository README and download the raw hosts file for the variant you want. The second is to copy the repository with Git.

The README warns that cloning can take a long time, because the history goes back to 2018. It suggests a shallow clone, written in the README as:

git clone --depth 1 ...

The repository URL is https://github.com/StevenBlack/hosts. Filled in, our example (not the README’s wording) looks like this:

git clone --depth 1 https://github.com/StevenBlack/hosts

Read the project’s README before changing anything on a work or school machine.

What to do first: a safe test plan (Our take)

This section is our own advice, not the project’s. Editing a hosts file can break access to sites people need, so go slowly.

  1. Back up your current hosts file. Find it on your system, then copy it somewhere safe with today’s date in the name.
  2. Start on one test computer. Don’t begin with a classroom set or the office front desk.
  3. Start with the base file. Skip the biggest variant until you know what the list does.
  4. Check that a block works. Pick a domain that appears in the file you installed. Open it in a browser before and after, restarting the browser (or the computer) so old lookups don’t linger. It should stop loading.
  5. Check that normal work still runs. Log in to the tools your staff or students use daily.
  6. Know how to undo it. Put your backup copy back in place. That returns the machine to how it was.

In the US and Canada, school IT teams often work under district or provincial rules about what they may change on managed devices. Ask before you edit.

Next things to try

  • Compare a category variant, such as social, with the base file. Count the domains in the table first so you know the size of the change.
  • If you use a hosts file manager, try the non-GitHub mirror link for your variant.
  • Watch the release page to see how often the lists change.

Limitations and who should skip it

  • It’s a list, not an app. You’re working with files and, optionally, Git. If you want point-and-click, this may feel like homework.
  • It works by domain. The table counts unique domains, so that’s the unit it deals in.
  • Bigger isn’t automatically better. The porn extension takes the unified list from 80,616 to 157,048 domains. Pick only what you need.
  • Where to report problems. The README says issues about the content of the produced lists should go to the original data source. Issues about the hosts/data/StevenBlack/hosts file itself are handled in this repository. There are 172 open issues right now.
  • We haven’t tested it. This guide rests on the README and repository details, not a hands-on run.

Skip it if you’d rather not edit system files or manage lists.

Alternatives

The README sections we checked don’t name any, so we won’t list products as if the project compared itself to them.

The numbers

The repository has 31,541 stars and 2,458 forks, and it was created on April 12, 2012. GitHub shows the last activity on December 1, 2026. The licence is MIT, which is permissive. The main language is Python.

Quick answers

Is the StevenBlack hosts file free?

The licence is MIT, and the repository is public on GitHub.

How big is the default list?

The README says the unified hosts file contains 80,616 entries.

Which variant should I start with?

Our suggestion is the base Unified hosts file, labeled adware + malware, on one test machine.

Back up first, test on one computer, and read the README before you roll anything out. The project is at github.com/StevenBlack/hosts.

Screenshot: StevenBlack/hosts (MIT licence)

Sources

This article was researched and drafted with AI assistance and reviewed against the linked sources by the Nexonic editorial team.

← More Open-Source Tools

Join the conversation

Ready to grow with a digital partner?

Tell us about your project. We’ll reply to arrange a free consultation.