The script downloads several recommended blocklists from https://ipblocklist.com exactly as defined and merges them into a single file compatible with qBittorrent.
The result is a ready-to-use ipfilter.dat file that can be directly integrated into qBittorrent.
How to use the generated file in qBittorrent:
Download the script here or alternatively on GitHub qBittorrent IPFilter Updater
ipfilter_en.py (5.49 KB)
Date: 2025-05-09
CRC32 Hash: 1197a5b9
SHA-256 Hash: e3781fb6a7198562a12839cc683a970308f86f84fce54fec2e33ed78a09e6195
Key Features of the Script
The script downloads several recommended blocklists from https://ipblocklist.com exactly as defined and merges them into a single file compatible with qBittorrent.
- List Management:
Automatically downloads multiple curated lists (e.g., Level 1, Anti-Infringement, Spamhaus DROP) via direct URLs. - Decompression & Parsing:
Extracts `.gz` archives and reads the contained `.p2p` text. - Validation:
Checks IP formats and address ranges using Python’s ipaddress module and regular expressions. - Error Logging:
Logs malformed lines and automatically documents corrections (e.g., missing separators or invalid entries). - Format Conversion:
Converts valid entries into the qBittorrent-compatible format: IP-START - IP-END , 000 , Description - File Merging:
All lists are combined into a single file – ideal for maximum compatibility and clarity. - Logging:
Creates a complete log.txt with date, statistics, warnings, and corrected entries.
The result is a ready-to-use ipfilter.dat file that can be directly integrated into qBittorrent.
Integration with qBittorrent
How to use the generated file in qBittorrent:
- Go to: Tools → Options → Connection → IP Filtering
- Select the generated ipfilter.dat file
- Additionally enable: "Apply to trackers" so that tracker servers are also blocked by the filter lists
- Restart qBittorrent to apply the changes
Who Is This Script For?
- For privacy-conscious users who want to keep their blocklists up to date regularly
- For technically experienced users who want to automate the use of reliable sources
- For anyone wanting to avoid manual errors and outdated lists
Download
Download the script here or alternatively on GitHub qBittorrent IPFilter Updater

Date: 2025-05-09
CRC32 Hash: 1197a5b9
SHA-256 Hash: e3781fb6a7198562a12839cc683a970308f86f84fce54fec2e33ed78a09e6195
Your opinion is important – please leave a comment!
0 Comments