Use Multiple Blocklists In Various Torrent Clients

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

Use Multiple Blocklists In Various Torrent Clients

Postby digigold » Oct 3rd, '12, 12:33

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
"A mind that is stretched by a new experience can never go back to its old dimensions."
~Oliver Wendell Holmes, Jr.
User avatar
digigold
 
Posts: 150
Joined: May 9th, '12, 14:50
Location: Northern U.S.

Re: Use Multiple Blocklists In Various Torrent Clients

Postby doktor5000 » Oct 3rd, '12, 15:06

Nice, thanks a million :D
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15314
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Use Multiple Blocklists In Various Torrent Clients

Postby digigold » Oct 4th, '12, 14:59

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:
"A mind that is stretched by a new experience can never go back to its old dimensions."
~Oliver Wendell Holmes, Jr.
User avatar
digigold
 
Posts: 150
Joined: May 9th, '12, 14:50
Location: Northern U.S.


Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron