Coder Social home page Coder Social logo

touhidurrr / iplist-youtube Goto Github PK

View Code? Open in Web Editor NEW
56.0 2.0 23.0 3.83 MB

An attempt to list all Youtube IPs at one place.

License: BSD 3-Clause "New" or "Revised" License

Python 92.46% Shell 7.54%
youtube iplist-youtube privacy blocklist list adblock google ip ipv4 ipv6

iplist-youtube's Introduction

iplist-youtube

An attempt list of all IPs that youtube uses.

This is a list that keeps 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 21062 YouTube IPs.

Ipv4 list raw link => Here! New! CIDR List => Here!

Ipv6 list raw link => Here! New! CIDR List => Here!

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 ipv4_list.txt and ipv6_list.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 this commands in the folder cantainng the files.

chmod +x list_generator.sh
./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 list_generator.py
./list_generator.py

If this doesn't work, try:

python3 list_generator.py

New! To generate CIDR lists use generate_cidr.py

python3 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

iplist-youtube's People

Contributors

nusab19 avatar touhidurrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iplist-youtube's Issues

Obtaining the IP of youtube needs to be optimized

The IP was discovered in the past two days.
1.225.35.175:443 142.251.90.135:443 142.251.90.136:443 172.217.137.138:443 173.194.49.7:443 173.194.49.71:443 173.194.51.70:443 209.85.228.137:443 209.85.228.231:443 209.85.229.73:443 211.49.146.15:443 74.125.102.136:443 74.125.102.138:443 74.125.164.8:443

IPv4 range list

Hi @touhidurrr,

Thanks for this repo,
I needed the IP's linked to YouTube to whitelist them on my VPN and bypass load captchas.

Possible to add a list of YouTube's IPv4 addresses but in ranges with CIDR ?
The list would be shorter and easier to enter and manage for whitelists/blocklists.

There's this link which provides all IPv4 addresses linked to Google with ranges but it's too broad and includes everything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.