YouTube IP addresses and domains: a list for routers and VPN

YouTube has no networks of its own: it lives in the networks of Google, shared with its other services. So the list is made of 177 domains, and a router that takes rules by name can use all of it.

IPv4
None of its own
IPv6
None of its own
Domains
177
Open the full listData of 2026-11-30

What is in the YouTube list

The page is youtube.com, but the video itself comes from googlevideo.com, previews from ytimg.com and avatars from ggpht.com. A list with youtube.com alone opens a page whose player keeps loading.

Most of the names here are YouTube in other countries' zones. If your router counts entries, youtube.com, youtu.be, googlevideo.com, ytimg.com, ggpht.com and youtubei.googleapis.com are the working minimum.

If you need networks, take the list of Google: its other services come along with YouTube.

Domains 176

A domain here means the name and all its subdomains. Exact names are only themselves.

  • ggpht.cn
  • ggpht.com
  • googlevideo.com
  • wide-youtube.l.google.com
  • withyoutube.com
  • youtu.be
  • youtube
  • youtube-nocookie.com
  • youtube-ui.l.google.com
  • youtube.ae
  • youtube.al
  • youtube.am
  • youtube.at
  • youtube.az
  • youtube.ba
  • youtube.be
  • youtube.bg
  • youtube.bh
  • youtube.bo
  • youtube.by
  • youtube.ca
  • youtube.cat
  • youtube.ch
  • youtube.cl
  • youtube.co
  • youtube.co.ae
  • youtube.co.at
  • youtube.co.cr
  • youtube.co.hu
  • youtube.co.id
  • youtube.co.il
  • youtube.co.in
  • youtube.co.jp
  • youtube.co.ke
  • youtube.co.kr
  • youtube.co.ma
  • youtube.co.nz
  • youtube.co.th
  • youtube.co.tz
  • youtube.co.ug
  • youtube.co.uk
  • youtube.co.ve
  • youtube.co.za
  • youtube.co.zw
  • youtube.com
  • youtube.com.ar
  • youtube.com.au
  • youtube.com.az
  • youtube.com.bd
  • youtube.com.bh
  • youtube.com.bo
  • youtube.com.br
  • youtube.com.by
  • youtube.com.co
  • youtube.com.do
  • youtube.com.ec
  • youtube.com.ee
  • youtube.com.eg
  • youtube.com.es
  • youtube.com.gh
  • youtube.com.gr
  • youtube.com.gt
  • youtube.com.hk
  • youtube.com.hn
  • youtube.com.hr
  • youtube.com.jm
  • youtube.com.jo
  • youtube.com.kw
  • youtube.com.lb
  • youtube.com.lv
  • youtube.com.ly
  • youtube.com.mk
  • youtube.com.mt
  • youtube.com.mx
  • youtube.com.my
  • youtube.com.ng
  • youtube.com.ni
  • youtube.com.om
  • youtube.com.pa
  • youtube.com.pe

The first 80 of 176. The whole list is in the tool.

Exact names 1

  • yt3.googleusercontent.com

Files for scripts and routers

Addresses that don't change. Networks are refreshed every day, domains together with this page; the day of the data is in the Last-Modified header.

MikroTik: fetch and import

/tool fetch url="https://velivpn.com/lists/youtube.rsc"
/import youtube.rsc

Ready for your router or client

The first lines in each format. The tool gives the whole list, merges neighbouring networks and says what a format can't hold.

MikroTik

# youtube (2026-11-30), velivpn.com/tools/ip-list/
/ip dns static
add name=ggpht.cn type=FWD match-subdomain=yes address-list=youtube
add name=ggpht.com type=FWD match-subdomain=yes address-list=youtube
add name=googlevideo.com type=FWD match-subdomain=yes address-list=youtube
add name=wide-youtube.l.google.com type=FWD match-subdomain=yes address-list=youtube
add name=withyoutube.com type=FWD match-subdomain=yes address-list=youtube
add name=youtu.be type=FWD match-subdomain=yes address-list=youtube
add name=youtube-nocookie.com type=FWD match-subdomain=yes address-list=youtube
add name=youtube-ui.l.google.com type=FWD match-subdomain=yes address-list=youtube
add name=youtube.ae type=FWD match-subdomain=yes address-list=youtube
add name=youtube.al type=FWD match-subdomain=yes address-list=youtube
add name=youtube.am type=FWD match-subdomain=yes address-list=youtube
add name=youtube.at type=FWD match-subdomain=yes address-list=youtube
…

Keenetic

object-group fqdn youtube include ggpht.cn
object-group fqdn youtube include ggpht.com
object-group fqdn youtube include googlevideo.com
object-group fqdn youtube include wide-youtube.l.google.com
object-group fqdn youtube include withyoutube.com
object-group fqdn youtube include youtu.be
object-group fqdn youtube include youtube-nocookie.com
object-group fqdn youtube include youtube-ui.l.google.com
object-group fqdn youtube include youtube.ae
object-group fqdn youtube include youtube.al
object-group fqdn youtube include youtube.am
object-group fqdn youtube include youtube.at
object-group fqdn youtube include youtube.az
object-group fqdn youtube include youtube.ba
…

AmneziaVPN

[
  {"hostname":"ggpht.cn","ip":""},
  {"hostname":"ggpht.com","ip":""},
  {"hostname":"googlevideo.com","ip":""},
  {"hostname":"wide-youtube.l.google.com","ip":""},
  {"hostname":"withyoutube.com","ip":""},
  {"hostname":"youtu.be","ip":""},
  {"hostname":"youtube-nocookie.com","ip":""},
  {"hostname":"youtube-ui.l.google.com","ip":""},
  {"hostname":"youtube.ae","ip":""},
  {"hostname":"youtube.al","ip":""},
  {"hostname":"youtube.am","ip":""},
  {"hostname":"youtube.at","ip":""},
  {"hostname":"youtube.az","ip":""},
…

In Veli the same is set by sites and apps, without lists: what goes through the VPN and what goes direct. There is a package for OpenWrt routers. Free, no sign-up.

Download Veli

FAQ

What IP addresses does YouTube use?

None of its own, it is in the networks of Google. Rules by domain are safer: there are 177.

How do I send only YouTube through a VPN?

Take the list in your router's or client's format: AllowedIPs needs networks, so it won't do here, while Keenetic, MikroTik and OpenWrt also take domains. In Veli the same is done without lists, with split tunneling by sites and apps.