Skip to content
Hostfile blocklist for ads and tracking, updated regularly
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Jun 20, 2019
HostsTools Added Homepage header to work with uBlock origin Jun 5, 2019
docs Added URL from spam message Jun 24, 2019
tests Added filter for duplicated host strings. Added dryrun flag Feb 3, 2019
.editorconfig Added unit testing. Jun 18, 2018
.gitignore Adding echo in cron. Apr 4, 2019
.travis.yml Better filtering for invalid domain names. Removed a couple sites cau… Jul 6, 2018
LICENSE Initial commit May 10, 2018
Makefile Better filtering for invalid domain names. Removed a couple sites cau… Jul 6, 2018
README.md Fixed a vs an May 29, 2019
ads-and-tracking-extended.txt Added URL from spam message Jun 24, 2019
ads-and-tracking-whitelist.txt Added a whitelist entry for some random imrworldwide.com subdomains Jun 14, 2019
ads-and-tracking.txt Added URL from spam message Jun 24, 2019
amp-hosts-extended.txt More roots from various sources including pihole Jun 24, 2019
amp-hosts-whitelist.txt Whitelist issues with merge commits. Dec 11, 2018
amp-hosts.txt More roots from various sources including pihole Jun 24, 2019
cron.bash Update cron job to not revert secrets.json Apr 5, 2019
pytest.ini Added unit testing. Jun 18, 2018
requirements.txt Set requirement versions. Jan 8, 2019
secrets.json Added ad.gt Mar 15, 2019
tracking-aggressive-extended.txt Automatic list update Jun 24, 2019
tracking-aggressive-whitelist.txt Whitelist issues with merge commits. Dec 11, 2018
tracking-aggressive.txt A few more hosts from bb&t Jun 21, 2019
update_hosts_file.py Added a few hosts from knowyourmeme.com and corrected a few issues in… Apr 24, 2019

README.md

Hosts

Build Status license last commit commit activity donate gitter

A collection of hosts files for domain blocking. If you find something in a list that you believe is a mistake or breaks functionality, please open a ticket and I'll consider removing it. Also, if you find an unblocked subdomain of a blocked root domain, please let me know so I can add it to a list.

Host file recipe Description Raw hosts
Ads & Tracking A programmatically expanded list of hosts I've found to not be on other lists. This list is very reliable and I recommend using it. link
Tracking Aggressive A very aggressive block list for tracking, geo-targeting, & ads. This list will likely break functionality, so do not use it unless you are willing to maintain your own whitelist. If you find something in this list that you think is a mistake, please open a ticket and we can discuss it. Keep in mind that this is an aggressive list. link
AMP Hosts Google's Accelerated Mobile Pages (AMP) are taking over the web. Block AMP pages with this list. Since I use DuckDuckGo, this list is pretty sparse and suggestions are welcome! link

Adding a domain

Pre-requisites

  • Python 3.5 or later
  • pip3

Setup

$ make setup

Test

$ make test

Usage

$ python3 update_hosts_file.py --help

Examples

$ python3 update_hosts_file.py -d amazon-adsystem.com doubleclick.net
$ python3 update_hosts_file.py -update
You can’t perform that action at this time.