An anti-capitalist ad-blocker that uses the hosts file
TBlock is a free and open-source system-wide ad-blocker that is compatible with most filter list formats.
- Blocks ads and trackers system-wide
- Compatible with most filter list formats
- Has an online repository to help you find and subscribe to popular blocklists in an easy way
- Has a built-in filter list converter
- Has a built-in daemon that regularly updates the filter lists and prevents your hosts file from being modified by other programs and users
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 update the repository index and subscribe to the default blocklist in order to enable protection against ads and trackers:
tblock -Sy tblock-base
If afterwards you want to disable TBlock's protection, you can do so by running:
Then, to enable it again:
Here is a list of the upcoming changes in TBlock code. Suggestions are, of course, welcome.
- Mark filter lists that are included in another list as
subscribedwhen the user subscribes to the list
- Allow virtual filter lists to exist (would act as a "group", like
base-develdoes on Arch Linux)
- Implement a GUI for TBlock
- Rewrite the entire code, make a clearer public API and publish release 3.0.0
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.
Authors and acknowledgment
Here is a list of all libraries used in the project:
|requests||Kenneth Reitz||Apache 2.0|
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 https://www.gnu.org/licenses/.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.