Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:torrents [2022/04/19 08:28] – external edit 127.0.0.1fuss:torrents [2024/01/21 00:29] – [Automate Peer Block List Updates] office
Line 14: Line 14:
 ====== Automate Peer Block List Updates ====== ====== Automate Peer Block List Updates ======
  
-Torrent clients such as qBittorrent allow blocking p2p peers based on a provided blacklistSince the blacklist may be updated periodically, it must be re-downloaded on a schedule.+Torrent clients such as qBittorrent allow blocking P2P peers based on blacklists generated by various third-parties parties on the InternetBlacklists are typically updated by the maintainer such that they must be updated periodically and the following section provides scripts to download the blocklists in various environments. 
 + 
 +Note that even though blacklists are not as good of a solution as a whitelist of peers (for exampleby joining a private tracker), the blacklists are good enough to stop any direct attempts by anti-piracy companies to connect. The fact that anti-piracy companies can use other methods, or even connect through VPNs, if necessary, is irrelevant and removing the peerblock blacklist would just serve to make it easier for the anti-P2P companies to connect (not more difficult). Furthermore, peerblock blacklists are typically organized such that they require an O(1) time complexity lookup, such that the computation loss is negligible compared to the ability to batch block entire IP ranges belonging to companies whose very mission is to track and harass people sharing files. The argument that peerblock "is useless", is also null and void. 
 + 
  
 ===== Windows ===== ===== Windows =====
Line 84: Line 88:
 ===== Linux ===== ===== Linux =====
  
-A file can be placed at ''/etc/cron.daily/peerblock'' with the following contents:+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 ''/etc/cron.daily/peerblock'' with the following contents:
 <file bash peerblock> <file bash peerblock>
-#!/bin/sh+#!/usr/bin/env sh 
 +########################################################################### 
 +##  Copyright (C) Wizardry and Steamworks 2024 - License: MIT            ## 
 +########################################################################### 
 + 
 +DESTINATION_FILE=/opt/peerblock/peerblock.p2p
  
-/usr/bin/wget ---O /opt/peerblock/anti-p2p-companies.p2p http://omeglewarden.weebly.com/uploads/6/9/2/6/6926744/anti-p2p-companies.p2p+curl \ 
 +    -s \ 
 +    -L \ 
 +    -
 +    'http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz' | \ 
 +    gunzip | \ 
 +    egrep -v '^#' | \ 
 +    sort -u > ${DESTINATION_FILE}
  
 </file> </file>
-that will download the peer block file to the ''/opt/peerblock'' directory.+that will download the peer block file to ''/opt/peerblock/peerblock.p2p'' directory.
  
  

fuss/torrents.txt · Last modified: 2024/01/21 00:38 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.