YouTube works on your phone's data, but on the college or office Wi-Fi it's either completely dead, oddly empty, or buffering at 144p. Most people blame "slow internet". In practice the cause is usually a deliberate network control: the same DNS filters, firewalls and traffic rules that organisations use to keep malware, phishing sites and other threats off their networks. Each of these mechanisms leaves clear traces, and you can work out which one you're dealing with in a few minutes using standard tools. This guide walks through them, from the most common to the least.
1. Restricted Mode enforced at the network level
This is the one that confuses people most, because YouTube does load. The homepage works, but many videos show "This video is unavailable with Restricted Mode enabled", comments are hidden, and searches return oddly few results.
Restricted Mode is YouTube's filter for potentially mature content. Users can switch it on themselves, but network administrators can also force it for everyone on the network, and Google documents exactly how. In the method aimed at networks, the admin points YouTube's hostnames at a special address through DNS: restrict.youtube.com for strict filtering, or restrictmoderate.youtube.com for moderate. Google lists the exact hostnames and options in its admin guide on controlling YouTube content.
How to check: look up YouTube's address and see whether it's been redirected.
nslookup www.youtube.com
If the answer includes restrict.youtube.com or restrictmoderate.youtube.com as a CNAME, Restricted Mode is enforced by the network. Your account settings can't override it.
2. DNS blocking
Some networks go further and block YouTube's domains entirely. The resolver returns no answer, 0.0.0.0, or the IP address of a block page.
How to check: compare the network's resolver with a public one.
nslookup www.youtube.com
nslookup www.youtube.com 8.8.8.8
Different answers mean the local DNS is filtering. If both commands return the same blocked answer, the network may be intercepting all DNS traffic on port 53.
3. Firewall and SNI filtering
More capable firewalls inspect the start of each HTTPS connection. The hostname you're connecting to (the SNI field in the TLS ClientHello) is usually sent in plain text, so the firewall can reset connections to youtube.com or googlevideo.com while leaving everything else alone.
How to check:
curl -v https://www.youtube.com
If the output stops right after the TLS Client Hello with "connection reset" or "connection closed", that's SNI filtering. A classic variant is partial blocking: the YouTube page loads, but the video stream itself, served from *.googlevideo.com, is blocked. You get thumbnails and a spinning player that never plays.
4. Bandwidth shaping and throttling
Not every problem is a block. Many networks use traffic shaping (QoS) to give video a small share of the bandwidth, so classes, meetings or exam portals stay responsive. YouTube still works, but it drops to low resolution and buffers constantly.
How to check: run a speed test, then play a video and open "Stats for nerds" (right-click on the player). If the speed test shows plenty of bandwidth but "Connection Speed" in the stats stays low only for YouTube, the network is shaping video traffic specifically.
5. Plain old problems
Before you assume a policy, rule out the boring causes:
- An outdated browser, or extensions that interfere with the player
- A wrong system clock, which breaks HTTPS certificate checks
- A congested access point with too many users at peak times
- An ISP-side outage, or routing issues with Google's servers
One more that often fools people on campus and hotel networks: an expired captive portal session. Many networks make you log in through a web page and quietly end the session after a few hours. Some sites keep working from cache while new connections, including video streams, fail. Opening any plain HTTP page, such as http://neverssl.com, usually brings the login page back.
YouTube's own help centre has a troubleshooting page for video errors that covers the client-side causes well, and it's worth going through first.
A quick diagnostic flow
What you see | Likely cause | Test |
Videos say "unavailable with Restricted Mode" | Network-enforced Restricted Mode | nslookup www.youtube.com shows a restrict CNAME |
youtube.com doesn't resolve or shows a block page | DNS blocking | Compare local and public resolver answers |
Connection reset, or thumbnails without playback | SNI or firewall filtering | curl -v stops at the TLS handshake |
Plays, but only at low quality | Bandwidth shaping | Speed test vs. "Stats for nerds" |
Errors on every network | Local device problem | Try another browser or device |
Running the checks on Windows, Linux and Android
The commands above work almost everywhere, with small differences:
- Windows: nslookup is built in. curl ships with Windows 10 and 11, but call it as curl.exe in PowerShell so it isn't confused with the PowerShell alias.
- Linux and macOS: dig www.youtube.com gives a cleaner output than nslookup and shows CNAME records clearly. Add @8.8.8.8 to query a specific resolver.
- Android: apps like Termux give you curl and dig. Alternatively, open https://www.youtube.com in Chrome and check whether the error page mentions a reset connection or a DNS failure. The wording tells you which layer failed.
Write down the results from each network you test. Comparing outputs side by side is often the quickest way to explain the issue to an admin.
So what can you do?
It depends on whose network it is.
On a college or company network, the block is a policy decision, and the people who made it can usually change it. If you need YouTube for coursework or work, such as tutorials, lecture recordings or product demos, ask IT. Many institutions will whitelist specific channels or switch from strict to moderate Restricted Mode once someone explains the need. Bypassing an institution's filter without permission can violate its acceptable-use policy, so check the rules first.
For learning material you need regularly, think ahead. Download lectures and tutorials for offline viewing while you're on an unrestricted connection (YouTube Premium allows offline downloads within its app), or use mobile data for the occasional video.
On your own connection or in a country-level block, DNS-level filtering can be handled by switching to an encrypted DNS resolver. SNI filtering and region restrictions are different, though: the traffic has to leave the network through somewhere else. That's what VPNs do. They encrypt the connection to a server in another location, so the local network can't see that you're opening YouTube. With a browser extension or app such as Browsec, you can unblock YouTube in a couple of clicks, and turn it off again when you don't need it.
Wrapping up
"YouTube doesn't work here" can mean five different things, and only one of them is a slow connection. Two commands, nslookup and curl -v, tell you most of what you need to know. They take less time than restarting the router, and they turn a vague complaint into a specific question for the network admin: "Is Restricted Mode enforced through DNS?"