Skip to content

Instantly share code, notes, and snippets.

@shmup
Last active December 9, 2024 09:41
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://raw.githubusercontent.com/Naunter/BT_BlockLists/master/bt_blocklists.gz (peep the curls) (github)
  3. Check Enable automatic updates
  4. Click Update
  5. Close
@Galenmacil
Copy link

I have never had an issue using this list without registering: http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz

Thanks for this. Still working as of this writing...

@JasperLawrence
Copy link

Thank you to everyone who has contributed to this list, I am grateful for your efforts.

@kiwisincebirth
Copy link

@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."`

@petesimon
Copy link

in September 2024, this link https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz still works. Thank you!

@Zotter
Copy link

Zotter commented Oct 23, 2024

Yes, "https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz" still works and the date changes routinely, but it doesn't appear the contents of the file have changed since 2022 or earlier. The scripts creating the archive are running, but it's unclear if there are actually any updates to be had, let alone included.

@engineeror
Copy link

@shmup
Copy link
Author

shmup commented Oct 23, 2024

I did wonder if @Zotter has a point though, @engineeror . If it's true the contents haven't changed in a while, I'll update the gist with that warning information. I haven't been paying attention (or even using transmission)

@shmup
Copy link
Author

shmup commented Oct 25, 2024

@Zotter I replaced the URL in the gist yesterday when @engineeror pointed that out, I notice that you mentioned the original had one more URLs. Now I don't know if I should restore it! But also, I wondered if things get pruned.

@engineeror
Copy link

well in my case i noticed that the blocked IP count doesn't change in transmissiond with https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz anymore.
apparently several redirects are now needed via that url to get to the archive and transmissiond doesn't handle this properly i guess.
currently end url is https://raw.githubusercontent.com/Naunter/BT_BlockLists/master/bt_blocklists.gz and with this the blocked IP count is now changing for me again.
idk if transmissiond updates automatically, so i have this:

# /etc/systemd/system/transmission-blocklist-update.service
[Unit]
Description=Update Transmission IP blocklist

[Service]
User=transmission
Group=users
ExecStart=/usr/bin/transmission-remote --blocklist-update

# /etc/systemd/system/transmission-blocklist-update.timer
[Unit]
Description=Update Transmission IP blocklist
Requisite=transmission.service
After=transmission.service

[Timer]
RandomizedDelaySec=30m
OnActiveSec=6h
OnUnitActiveSec=6h

[Install]
WantedBy=transmission.service

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