This script uses iptables
to block torrent traffic on your server. It is designed to prevent the use of BitTorrent protocols by filtering common torrent-related traffic patterns and blocking specific ports.
- A Debian-based Linux distribution (e.g., Ubuntu).
- Root or sudo access to install packages and modify iptables rules.
To download and run the script using curl
, use the following command:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/090ebier/torrent-blocking-script/main/block_torrent.sh)"