Skip to content

Instantly share code, notes, and snippets.

@shmup
Last active July 2, 2024 19:05
Show Gist options
  • Save shmup/29566c5268569069c256 to your computer and use it in GitHub Desktop.
Save shmup/29566c5268569069c256 to your computer and use it in GitHub Desktop.
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

After installing, navigate through the menu: Edit > Preferences > Privacy:

image

  1. Check enable blocklist
  2. Paste in: https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz (peep the curls) (github)
  3. Check Enable automatic updates
  4. Click Update
  5. Close
@cablehub
Copy link

cablehub commented Jul 23, 2023

This seems to work quite well: https://github.com/fonic/ipfilter

Only downside is that you need a server to provide the file as Transmission still hasn't implemented support for local blocklist files. I put the script on my NAS, which generates the block list and then serves it to local clients via HTTP. Works perfectly thus far.

@v0d0r
Copy link

v0d0r commented Jun 1, 2024

here is something i hacked together using the iblocklist.com list. of course i ended up registering to iblocklist.com to get this to work. replace with your own custom url they provide you based on your selection etc... also worth noting i run transmission in a docker and extract the blacklist file to my container config / blacklists folder then restart the container for it to read it on startup. then i just cron the below script weekly.

`#!/bin/bash

Variables

URL='http://list.iblocklist.com/?list=xyz&fileformat=p2p&archiveformat=gz&username=meh&pin=1234'
OUTPUT_DIR='/mnt/nfs/swarm/dockervolumes/transmission/blocklists'
OUTPUT_FILE='blocklist.gz'
EXTRACTED_FILE='blocklist'
DOCKER_CONTAINER='transmission'

Download the blocklist file

wget -O $OUTPUT_FILE $URL

Extract the blocklist file

gunzip -f $OUTPUT_FILE

Move the extracted file to the desired location

mv $EXTRACTED_FILE $OUTPUT_DIR/$EXTRACTED_FILE

Restart the Docker container

docker restart $DOCKER_CONTAINER

echo "Blocklist updated and Docker container restarted successfully."`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment