Skip to content

cdryzun/trackers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

381 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trackers Blocklist

Auto-updated daily blocklist of BitTorrent tracker addresses for network-level filtering.

GitHub Stars GitHub Forks Entries Last Commit CI License

Overview

A daily-updated, deduplicated blocklist aggregated from multiple upstream sources. Contains domains, IPv4 and IPv6 addresses of known BitTorrent trackers, ready to drop into your firewall or DNS resolver.

Who is this for:

  • Network admins blocking P2P traffic on corporate/campus networks
  • ISPs implementing bandwidth or usage policies
  • Home lab setups with Pi-hole / dnsmasq
  • Security appliances (pfSense, OPNsense, Unbound, etc.)

Output Files

File Content Use case
trackers.txt Domains and IPv4 addresses, one per line DNS-based blocking, iptables, hosts file
trackers_v6.txt IPv6 addresses, one per line ip6tables, IPv6-capable firewall rules

Raw URLs

https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt
https://raw.githubusercontent.com/cdryzun/trackers/main/trackers_v6.txt

Usage

dnsmasq

curl -fsSL "https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt" \
  | awk '{print "address=/"$0"/#"}' > /etc/dnsmasq.d/trackers-block.conf
systemctl reload dnsmasq

Pi-hole

Add the raw URL to Group Management → Adlists, then update gravity:

https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt
pihole -g

Unbound

curl -fsSL "https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt" \
  | awk '{print "local-zone: \""$0"\" refuse"}' \
  > /etc/unbound/conf.d/trackers-block.conf

Then add to unbound.conf:

include: "/etc/unbound/conf.d/trackers-block.conf"

iptables — IPv4

curl -fsSL "https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt" \
  | grep -E '^([0-9]{1,3}\.){3}[0-9]{1,3}$' \
  | while read -r ip; do
      iptables -A INPUT   -s "$ip" -j DROP
      iptables -A OUTPUT  -d "$ip" -j DROP
      iptables -A FORWARD -d "$ip" -j DROP
    done

For gateway/router setups add the FORWARD rule; for standalone hosts INPUT + OUTPUT is sufficient.

ip6tables — IPv6

curl -fsSL "https://raw.githubusercontent.com/cdryzun/trackers/main/trackers_v6.txt" \
  | while read -r ip; do
      ip6tables -A INPUT   -s "$ip" -j DROP
      ip6tables -A OUTPUT  -d "$ip" -j DROP
      ip6tables -A FORWARD -d "$ip" -j DROP
    done

/etc/hosts

curl -fsSL "https://raw.githubusercontent.com/cdryzun/trackers/main/trackers.txt" \
  | grep -vE '^([0-9]{1,3}\.){3}[0-9]{1,3}$' \
  | awk '{print "0.0.0.0 "$0}' \
  >> /etc/hosts

Uses a precise IPv4 regex to exclude bare IP addresses while keeping domains that start with digits (e.g. 7.rarbg.me, 60-fps.org).

Data Sources

The CI pipeline clones ngosang/trackerslist on every run and dynamically processes all trackers_*.txt files — new files added or renamed upstream are picked up automatically.

Entries are split into two output files during extraction:

  • Domains and IPv4 → trackers.txt
  • IPv6 bracket-notation addresses → trackers_v6.txt

Update Schedule

Automatically updated every day at 04:15 UTC via GitHub Actions. The entries badge above reflects the live domain/IPv4 count from the last successful run.

Trigger a manual update from the Actions tab.

Contributing

See CONTRIBUTING.md.

License

MIT

About

Auto-updated daily blocklist of BitTorrent tracker domains & IPs. Drop-in compatible with dnsmasq, Pi-hole, iptables, pfSense, and Unbound.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors