• Stable 2.4.1 c57f2fe9df

    tblock 2.4.1

    twann released this 1 week ago | 2 commits to main since this release

    Added

    • Allow to launch daemon with python -m tblock.daemon

    Fixed

    • Fix file size not accurate when downloading filter lists
    • Add timeout when fetching filter lists to avoid taking to much time before falling back to a mirror
    • Fix daemon not stopping while updating filter lists when receiving SIGTERM or SIGINT messages
    Downloads
     
  • Stable 2.4.0 c0ab3a1218

    tblock 2.4.0

    twann released this 3 weeks ago | 10 commits to main since this release

    Added

    • Add support for TBlock filter format v2
    • Add warning when the user is running tblock -S but that the repository index hasn't been synced once (closes #49).
    • New API function to get all active filter lists
    • New API function go get all active rules
    • New API function to get the total count of active rules

    Changed

    • Update all tests

    Deprecated

    Fixed

    • Only append valid rules to hosts file after inserting them into database
    • Fix quiet variable not being used everywhere in API
    • Handle OSError when hosts file is read-only
    • Fixed the program not letting user set rules that already exist with the same policy but a different priority

    Security

    • Prevent custom filter lists from defining rules that have user priority
    Downloads
     
  • Stable 2.3.0 ed575bd170

    tblock 2.3.0

    twann released this 2 months ago | 21 commits to main since this release

    Added

    • New operation allowing to enable protection without to rebuild the full hosts file (will be useful for the upcoming GUI)

    Changed

    • Sort domains alphabetically in hosts file, as well as rules and filter lists when listing

    Fixed

    • Operation --restore has been renamed to --disable to avoid confusion
    Downloads
     
  • Stable 2.2.0 437d2ee210

    tblock 2.2.0

    twann released this 2 months ago | 28 commits to main since this release

    Added

    • New converter option to prevent blank lines from being converted
    • New option to rebuild the full hosts file when adding or deleting a rule
    • New operation to check which filter list has set a rule for specified domains
    • Add runit support (thanks @rokosun)
    • Use pyproject.toml for modern Python module

    Changed

    • The converter now also converts blank lines by default
    • Apply rules directly to hosts file without requiring full rebuild each time
    • The fetchall() method is no longer used when performing SQLite queries, since it can slow down the program and take more memory than iterating through the cursor
    • Insert all rules without checking and run a SQL query afterwards to remove wildcard matches, instead of checking it when inserting rules
    • Use directly sqlite to match wildcards instead of re.match()
    • Alternate disk and RAM storage when updating hosts file
    • Improve speed when updating hosts file
    • Use multiprocessing for fast allowing rules checking (thanks @schrmh)
    • Don't check allowing rules that do not contain wildcards
    • Upgrade the argumentor module to v1.0.0
    • 0.0.0.0 is now the default blocking address

    Fixed

    • Handle sqlite3.OperationalError when database is locked
    • General speed improvements (see #39)
    • Fixed "Cleaning rules cache" message showing 1 instead of 0 when no rules are set

    Removed

    • Removed pandoc from build dependencies
    Downloads
     
  • Pre-Release 2.2.0-rc.1 488ac4b253

    tblock 2.2.0-rc.1

    twann released this 3 months ago | 35 commits to main since this release

    Added

    • Apply rules directly to hosts file without requiring full rebuild each time
    • New option to rebuild the full hosts file when adding or deleting a rule

    Changed

    Fixed

    • Fixed "Cleaning rules cache" message showing 1 instead of 0 when no rules are set
    Downloads
     
  • Pre-Release 2.2.0-rc 154b2b5e6b

    tblock 2.2.0-rc

    twann released this 3 months ago | 40 commits to main since this release

    Added

    • Use pyproject.toml for modern Python module

    Changed

    • Use multiprocessing for fast allowing rules checking (thanks @schrmh)
    • Don't check allowing rules that do not contain wildcards

    Removed

    • Removed pandoc from build dependencies
    Downloads
     
  • Pre-Release 2.2.0-beta 5f3ee5c56a

    tblock 2.2.0-beta

    twann released this 3 months ago | 52 commits to main since this release

    Added

    Changed

    • Improve speed when updating hosts file
    Downloads
     
  • Pre-Release 2.2.0-alpha 5c19471580

    tblock 2.2.0-alpha

    twann released this 4 months ago | 58 commits to main since this release

    Added

    • New operation to check which filter list has set a rule for specified domains

    Changed

    • Insert all rules without checking and run a SQL query afterwards to remove wildcard matches, instead of checking it when inserting rules
    • Use directly sqlite to match wildcards instead of re.match()
    • Alternate disk and RAM storage when updating hosts file

    Fixed

    • General speed improvements (see #39)
    Downloads
     
  • Stable 2.1.0 1e527897ef

    tblock 2.1.0

    twann released this 5 months ago | 79 commits to main since this release

    Added

    • Introduce filter lists tags and warnings

    Changed

    • Use JSON index in remote repository
    • Support older versions of the requests module (2.23.0)
    • Set sync_repo to true by default in daemon configuration

    Deprecated

    • Deprecated XML format in filter list repository

    Fixed

    • Fix colors not showing properly on Windows by using colorama.init()
    • Fix an issue with the daemon trying to use the database when it is locked

    Removed

    • Remove defusedxml from dependencies
    • Remove prefer_onion option from config

    Security

    • Verify checksum of cached filter lists before using them
    Downloads
     
  • Stable 2.0.0 0da207ad1e

    tblock 2.0.0

    twann released this 7 months ago | 94 commits to main since this release

    Added

    • Added a daemon that regularly updates online blocklists
    • Daemon can prevent the hosts file from being edited by another program
    • Store retrieved blocklists in cache, in case the network is not available at next update
    • Checks for new releases when fetching blocklist repository index
    • Added an operation to clean cached filter lists
    • Added an option to specify the syntax of a custom filter list
    • Onion mirror can be selected by default in configuration
    • Add script to generate a blocklist that blocks all sites protected by Cloudflare
    • New terminal output
    • Brand new status interface

    Changed

    • Use the argumentor module to parse command-line arguments
    • Code has been completely re-written
    • Improved converter regex rules for detecting filter list syntax
    • Improved configuration support
    • New database structure

    Fixed

    • Fixed memory issue with converter

    Removed

    • Removed support for Opera filter list syntax
    • Replaced the --update-all operation by --update, updating a single filter list is now not possible anymore
    Downloads