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 [2020/05/17 15:16] – [Peer Block Lists] office | fuss:torrents [2024/01/21 00:23] – [Linux] office | ||
---|---|---|---|
Line 84: | Line 84: | ||
===== Linux ===== | ===== Linux ===== | ||
- | A file can be placed | + | 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> | <file bash peerblock> | ||
- | #!/bin/sh | + | #!/usr/bin/env sh |
+ | ########################################################################### | ||
+ | ## Copyright (C) Wizardry and Steamworks 2024 - License: MIT ## | ||
+ | ########################################################################### | ||
- | /usr/bin/wget -q -c -O / | + | DESTINATION_FILE=/opt/peerblock/peerblock.p2p |
+ | |||
+ | curl \ | ||
+ | | ||
+ | | ||
+ | | ||
+ | 'http://list.iblocklist.com/? | ||
+ | gunzip | \ | ||
+ | egrep -v ' | ||
+ | sort -u > ${DESTINATION_FILE} | ||
</ | </ | ||
- | that will download the peer block file to the ''/ | + | that will download the peer block file to ''/ |