This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:torrents [2018/12/30 17:31] – office | fuss:torrents [2024/01/21 00:23] – [Linux] office | ||
---|---|---|---|
Line 12: | Line 12: | ||
Note that any number of announce parameters ('' | Note that any number of announce parameters ('' | ||
- | ====== Peer Block Lists ====== | + | ====== |
+ | |||
+ | Torrent clients such as qBittorrent allow blocking p2p peers based on a provided blacklist. Since the blacklist may be updated periodically, | ||
+ | |||
+ | ===== Windows ===== | ||
+ | |||
+ | For Windows and using only native tools, the peer block list can be downloaded using the task scheduler and bitsadmin. The following Windows task can be saved to a file and them imported in "Task Scheduler": | ||
+ | <file xml download-peerblock.xml> | ||
+ | <?xml version=" | ||
+ | <Task version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <Actions Context=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | The corresponding script file '' | ||
+ | <file dos download-peerblock.bat> | ||
+ | bitsadmin /create download-peerblock | ||
+ | bitsadmin / | ||
+ | bitsadmin /addfile download-peerblock http:// | ||
+ | bitsadmin /resume download-peerblock | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Linux ===== | ||
+ | |||
+ | The following is a script that can be executed via cron in order to retrieve a list of anti-P2P / piracy companies and their IP subnets in order to load the list in torrent clients and block them. For instance, to download the list on a daily basis, create the file at ''/ | ||
+ | <file bash peerblock> | ||
+ | # | ||
+ | ########################################################################### | ||
+ | ## Copyright (C) Wizardry and Steamworks 2024 - License: MIT ## | ||
+ | ########################################################################### | ||
+ | |||
+ | DESTINATION_FILE=/ | ||
+ | |||
+ | curl \ | ||
+ | -s \ | ||
+ | -L \ | ||
+ | -o - \ | ||
+ | ' | ||
+ | gunzip | \ | ||
+ | egrep -v ' | ||
+ | sort -u > ${DESTINATION_FILE} | ||
+ | |||
+ | </ | ||
+ | that will download the peer block file to ''/ | ||
- | * < |