RepositoryRouterOS ScriptBDBangladesh
touhidurrr

touhidurrr/iplist-youtube

An attempt to list all Youtube IPs at one place.

424stars
55forks
2issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: iplist-youtube

#1 Repository of the month

1
TINIX TRENDING·Topic: blocklist

#1 Repository of the month

1
TINIX TRENDING·Country: BD

#1 Repository of the month

iplist-youtube

An attempt to list all IPs that YouTube uses.

This list attempts to keep all ipv4 and ipv6 addresses used by YouTube. We use DNS Lookups to achieve this and the lists are automatically updated approximately every 5 minutes. The project is currently STABLE BETA. So, not all IPs might be available. At present, it has a collection of 32401 YouTube IPs.

Lists

Used open source lists:

  1. https://github.com/nickspaargaren/no-google/blob/master/categories/youtubeparsed

How to make the lists manually.

There are two scripts in the repository root, list_generator.sh and list_generator.py. Running any of these scripts should generate two files with a list of IPv4 and IPv6 addresses with the filenames lists/ipv4.txt and lists/ipv6.txt. Note that the list_generator.py is recommended although list_generator.sh should run better. This is because the list_generator.sh uses an underlining tool called dig which is a troubleshooting tool not intended to be used for production purposes. It has a little chance of listing some wrong IPs In some cases. With a warning or error.

To use the list_generator.sh file run these commands in the folder containing the files.

chmod +x src/list_generator.sh
./src/list_generator.sh

If this doesn't work, run the following before using it. It should only be necessary once.

sudo apt install sort dig grep parallel aria2c

For the .py file, you need to install dependencies. This is only necessary once.

pip3 install -r requirements.txt

Then run:

chmod +x src/list_generator.py
./src/list_generator.py

If this doesn't work, try:

python3 src/list_generator.py

New! To generate CIDR lists use generate_cidr.py

python3 src/generate_cidr.py

Important Notes

Using any of these scripts once is not enough. This is because IPs returned by DNS Queries are not consistent. They are changed at fixed or unfixed intervals. Although all IPs are not returned at the same time, all have the same purpose. And different computers use different IPs at the same time. And so, running the scripts, again and again, is a necessity. If you run the scripts more IPs should be automatic. Personally recommend running the scripts at least 100 times at the interval of 5 minutes or 300 seconds (Google's TTL). For reasonable performance, run it 1000 times before using it for production. I use such Cron jobs to populate the lists.

*/5 * * * * /path/to/the/script

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
beaugunderson/ip-address

💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript

636
Nov 28, 2026
RepositoryTypeScript
AdguardTeam/AdGuardHome

Network-wide ads & trackers blocking DNS server

39.0k
Dec 1, 2026
RepositoryPython
Guovin/iptv-api

⚡️ IPTV直播源自动更新工具:自动采集、校验、测速并生成可播放结果,支持 M3U/TXT/API 输出、自定义频道、IPv4/IPv6、Docker、GitHub Actions、CLI 与 GUI 多端部署

26.4k
Oct 14, 2026
RepositoryVue
FreeTubeApp/FreeTube

An Open Source YouTube app for privacy

22.6k
Dec 1, 2026
RepositoryTypeScript
pluja/awesome-privacy

Awesome Privacy - A curated list of services and alternatives that respect your privacy because PRIVACY MATTERS.

20.4k
Nov 25, 2026
RepositoryTypeScript
ajayyy/SponsorBlock

Skip YouTube video sponsors (browser extension)

14.2k
Nov 7, 2026
RepositoryKotlin
libre-tube/LibreTube

An alternative frontend for YouTube, for Android.

13.1k
Nov 29, 2026
RepositoryPython
benbusby/whoogle-search

A self-hosted, ad-free, privacy-respecting metasearch engine

11.6k
Aug 14, 2026
RepositoryGo
Loyalsoldier/geoip

🌚 🌍 🌝 GeoIP 增强版,自由定制多种格式 GeoIP 文件,包括但不限于 V2Ray dat 格式文件 geoip.dat、MaxMind mmdb 格式文件、sing-box SRS 格式文件、mihomo MRS 格式文件、Clash ruleset、Surge ruleset、Nginx allow & deny 规则文件等。Enhanced edition of GeoIP for Nginx, V2Ray, Xray-core, Clash, mihomo, sing-box, Shadowrocket, Quantumult X, Surge, hysteria, Trojan-Go, dae, etc.

6.8k
Nov 29, 2026