Page 1 of 1

Use Multiple Blocklists In Various Torrent Clients

PostPosted: Oct 3rd, '12, 12:33
by digigold
Since I like to use more than one remote list I wrote the following bash script for single source ip-blocklists in various torrent apps. (Deluge, QBittorrent, etc.) You can obviously modify the script to use your desired individual blocklists.

This is a good script to add to crontab! Requires wget & gzip (gunzip).

Code: Select all
##remove & backup old list
rm -f blocklst.p2p.old
mv blocklst.p2p blocklst.p2p.old

## Get the lists

wget http://list.iblocklist.com/?list=bt_level1 -O l1-z
wget http://list.iblocklist.com/?list=bt_spyware -O spy-z
wget http://list.iblocklist.com/?list=bt_ads -O ads-z
wget http://list.iblocklist.com/?list=bt_templist -O bp-z
wget http://list.iblocklist.com/?list=bt_hijacked -O hijack-z
wget http://list.iblocklist.com/?list=bt_dshield -O hack-z
wget http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn -O threat-z

## Merge the lists

cat l1-z spy-z ads-z bp-z hijack-z hack-z threat-z > blocklst.p2p.gz

## Decompress

gunzip blocklst.p2p.gz

## Clean individual list files

rm -f *-z

Re: Use Multiple Blocklists In Various Torrent Clients

PostPosted: Oct 3rd, '12, 15:06
by doktor5000
Nice, thanks a million :D

Re: Use Multiple Blocklists In Various Torrent Clients

PostPosted: Oct 4th, '12, 14:59
by digigold
doktor5000 wrote:Nice, thanks a million :D

Glad you find it useful. I started writing a simple GUI Front-End for an enhanced more robust blocklist manager, but then I got busy...maybe I'll finish it someday when I'm feeling ambitious. :mrgreen: