Skip to main content

An anti-capitalist ad-blocker that uses the hosts file

Project description


Awesome Humane Tech Pipeline status Please don't upload to GitHub


TBlock is a free and open-source system-wide ad-blocker that is compatible with most filter list formats.

To view the repository for the graphical user interface, click here.


You can easily install TBlock with:

pipx install tblock

More installation methods — such as Windows installer and packages for Linux distributions — can be found on the website.


After installing, you need to setup TBlock in order to enable protection against ads and trackers:

tblock --init

You can learn more by reading the documentation.




Here is a list of the upcoming changes in TBlock code. Suggestions are, of course, welcome.

  • Implement a GUI for TBlock
  • Rewrite the entire code, make a clearer public API and publish release 3.0.0


Everyone is welcome to contribute to TBlock in different ways. Bug reports can be made directly from the Gitea issue tracker, by sending an email to the team or in our Matrix room.

If you want to suggest a modification in the code, you can open a pull request or send your patch using email or Matrix.

If you want to be a beta-tester, you can install the latest beta version from our release page and contact us to give a feedback.

You can find more information on how to contribute here.


The best way to support is to contribute. If you want, you can also make a donation.

Authors and acknowledgment

TBlock is currently mainained by Twann, who is also its creator. A big thank you to all the people who contribute(d) to the project.


Here is a list of all libraries used in the project:

Name Author License
colorama Jonathan Hartley BSD
requests Kenneth Reitz Apache 2.0
urllib3 Andrey Petrov MIT
argumentor Twann LGPLv3

It is also worth mentioning pacman, from which TBlock's command-line design is highly inspired.




This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tblock-2.7.1.tar.gz (64.8 kB view hashes)

Uploaded source

Built Distribution

tblock-2.7.1-py3-none-any.whl (71.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page