You open YouTube to find one tutorial, a lecture, or a work recording. A few recommendations later, you're watching Shorts, checking comments, and wondering where the study session went. If you're asking, “How do I block YouTube?”, the right answer depends on whether you need a temporary focus barrier, a phone-level restriction, or a rule that covers everyone on your Wi-Fi.
A useful setup has layers. Start with the lightest tool that solves your problem, then add device or router controls if you can still bypass it. The aim isn't to prove that you have perfect self-control. It's to make the distracting choice inconvenient enough that you return to the task in front of you.
Table of Contents
- Why People Want to Block YouTube in 2026
- Blocking YouTube on Desktop Browsers
- Blocking YouTube on Phones and Tablets
- Blocking YouTube at the Router and DNS Level
- Choosing the Right Method for Your Situation
- Scheduling Sessions and Avoiding Self-Sabotage
- Your Layered Blocking Checklist
Why People Want to Block YouTube in 2026
YouTube can be useful and disruptive in the same sitting. A student may open it for a maths explanation and then drift into recommendations. A professional may search for a software tutorial and end up browsing unrelated videos. Parents face a different version of the problem, especially when children move from intentional viewing into an endless Shorts feed.
Short-form video deserves separate attention. YouTube's current supervised controls include a Shorts feed limit that can be set to zero minutes, making it possible to preserve useful YouTube access while removing one of the most compulsive surfaces. The official YouTube Shorts feed limit guidance explains the relevant control and its availability.

The real problem is usually attention
Blocking YouTube isn't only a parenting task. Students, researchers, remote workers, and freelancers often need a deliberate barrier during deep work because every unnecessary switch carries a mental reset. If you want the cognitive explanation, ThoughtLogger's guide to the cost of context switching gives useful background on why a small interruption can consume more attention than its duration suggests.
That leads to a practical recommendation:
- For one person and one laptop: use a focus blocker or browser extension.
- For a phone habit: use Screen Time or Digital Wellbeing, then remove easy bypasses.
- For a household or shared office: filter at the router and enforce DNS handling.
- For selective access: block Shorts or selected channels instead of disabling YouTube entirely.
China provides the clearest example of a long-running national YouTube block. Access was cut off during a major suspension beginning October 16, 2007, restored on March 22, 2008, and blocked again from March 24, 2009 onward, as documented in the history of YouTube censorship. A household doesn't need that level of control, but the example makes one point clear: blocking the service reliably requires more than hiding its icon.
Blocking YouTube on Desktop Browsers
Browser extensions are the sensible first move on a personal computer. Install a site blocker such as BlockSite, StayFocusd, or Cold Turkey, then add the YouTube domains you use, including the main site and mobile version. This works quickly, but it only protects the browsers where the extension is installed.

Choose the tool according to your weakness, not its feature list:
- StayFocusd: useful if you want a daily allowance and gradual reduction.
- Cold Turkey: better when you know you'll disable a soft limit. Its locked settings make a scheduled block harder to cancel casually.
- BlockSite: convenient for a quick domain list and basic access control.
Practical rule: If you can uninstall the blocker in the same moment you feel distracted, it isn't a serious barrier.
For a more permanent personal-workstation block, edit the computer's hosts file and map YouTube's commonly used hostnames to the local machine. After saving the entries, flush the DNS cache and restart the browser. This method requires administrator access and can need maintenance after system changes, so it suits your own laptop rather than a managed office computer.
Browser restrictions also have obvious holes. Private browsing, another browser, a second user profile, a VPN, or a phone can restore access. Don't use a browser extension as your only control when the goal is household enforcement. Use it as the fast, local layer, then place the stronger rule at the device or network level.
A visual walkthrough can help if you're unfamiliar with browser blocking settings:
Blocking YouTube on Phones and Tablets
Mobile blocking needs more care because the app bypasses browser-only rules and Shorts is built into the normal viewing flow. On an iPhone or iPad, start with Screen Time. Use Content & Privacy Restrictions to prevent installing or using the YouTube app, then set Downtime for the hours when you study or work.
Set the Screen Time passcode before the urge arrives. If you know the code, the restriction becomes a suggestion. For a child, the parent should keep the code private. For self-blocking, ask someone you trust to create the code, or use a separate focus tool that doesn't expose an easy override.
iPhone and iPad controls
If you still need ordinary YouTube for school or work, don't jump directly to a total ban. Use the available supervised YouTube controls to limit the Shorts feed, and set that limit to zero minutes when the priority is focused viewing, based on YouTube's official support documentation. This preserves access to a specific lecture or tutorial while removing the feed most likely to pull you into unrelated content.
The screenshot below shows the kind of iOS restriction area to look for:

Android settings
On Android, Digital Wellbeing provides Focus Mode and app timers. Pause YouTube during a scheduled study block, or set a limit that makes casual opening less automatic. If you're managing a child's device, Google Family Link is the stronger choice because a parent can control supervised restrictions from another device.
Third-party tools such as AppBlock and One Sec add friction rather than just hiding the app. An opening delay gives you a moment to ask whether you need the video, which is useful when a hard block would interfere with legitimate study.
Mobile data is the common escape route. A router block won't affect a phone that leaves Wi-Fi, and a device setting won't cover a second phone or tablet. If the problem follows you outside the house, use a device-level block or focus app as the primary layer.
Blocking YouTube at the Router and DNS Level
Router-level blocking is the best single layer for a home, family, or shared office. It stops requests before they reach individual devices, so you don't need to install a browser extension on every laptop. It also covers browsers and apps more consistently than a browser-only rule.
Log into your router's administration page and look for parental controls, access control, URL filtering, or domain blocking. Add YouTube's main domains and related delivery domains, including the site, image, and video-hosting domains used by the service. A rule that blocks only the main hostname can leave app traffic working.
Why DNS enforcement matters
A DNS filter can deny the domain before the device connects. Services such as OpenDNS FamilyShield, CleanBrowsing, and NextDNS provide filtering options, but the router must control which resolver clients use. If a device switches to an external resolver or encrypted DNS, it may ignore the household rule.
The documented network-level approach combines keyword rules for youtube.com, ytimg.com, and googlevideo.com with URL and DNS filtering, then redirects DNS requests back through the router. After browser history and DNS cache are cleared, devices on the LAN are denied access to both the website and app, according to the AV-TEST documentation on the setup.
| Provider | Primary DNS | DoH or bypass protection | Cost |
|---|---|---|---|
| OpenDNS FamilyShield | Provider-assigned addresses | Requires router enforcement and resolver controls | Free option |
| CleanBrowsing | Provider-assigned addresses | Requires blocking alternate DNS paths | Free and paid options |
| NextDNS | Provider-assigned addresses | Strong policy controls when clients are forced through the service | Free and paid options |
The table describes the type of service, not a guarantee that every router exposes the same settings. ISP hubs often provide only basic parental controls. If your router can't redirect DNS or block custom domains, use a separate firewall, replace the router, or run Pi-hole on a Raspberry Pi as the power-user route.
Testing matters because filters miss things. AV-TEST's 2026 evaluation of Kaspersky Safe Kids recorded blocking rates of 93% on Windows and 86% on Android, with false positives of 8.7% on Windows and 7.9% on Android; these figures are reported in the TMA/IFIP research reference. The same source discusses parental-control systems that failed to block up to 96% of sensitive domains, so DNS alone isn't a magic shield. Pair it with device controls when protecting sensitive access.
Choosing the Right Method for Your Situation
The right answer to how do I block YouTube changes with the person using the device.

A student writing a thesis usually needs scheduled focus sessions, not a permanent household ban. Use a focus app that can block YouTube on the laptop and phone, then allow only the research channels or pages required for the assignment. A structured Optimal Native study block approach can help you design the work period around deliberate breaks instead of relying on an open browser and good intentions.
Parents need enforcement that survives the child's next workaround. Combine Screen Time or Family Link with router DNS filtering, and keep the parent passcode separate from the child's normal device credentials. If the child uses mobile data or another device, the network layer won't be enough by itself.
Professionals in shared offices should start at the router or firewall. That covers unmanaged browsers and many BYOD devices without asking each employee to install a tool. It won't protect someone who leaves the network, so remote workers still need a local blocker.
| Situation | Primary method | Add this layer |
|---|---|---|
| Solo study session | Scheduled focus app | Browser blocklist |
| Child's phone or tablet | Screen Time or Family Link | Router DNS filtering |
| Shared home network | Router domain and DNS rules | Device restrictions |
| Personal laptop with a serious habit | Locked desktop blocker | Hosts-file block |
| Selective YouTube access | Shorts or channel controls | Allowlist for essential content |
Hosts-file edits are free but can require repair after system changes. Browser extensions are easy to bypass in private mode. DNS filters cover more devices but can be defeated by custom resolvers unless you force DNS handling. For students, choose scheduled device blocking. For parents, combine device controls with router enforcement. For offices, start with the network layer.
Scheduling Sessions and Avoiding Self-Sabotage
A permanent block is often too blunt. You may need a tutorial, a recorded meeting, or a specific educational channel, so schedule the restriction around the work rather than banning every legitimate use.
Set recurring windows that match your actual calendar. During those windows, block YouTube and Shorts. Create separate break periods where access returns, then stop the session when the break ends. The schedule should remove decisions from the moment when you're already tired or avoiding difficult work.
Build a useful allowlist
Whitelist only what you need:
- Research channels: Add the lecture or educational channel required for the assignment.
- Work recordings: Allow the team or training page without opening the general recommendation feed.
- Personal uploads: Keep access to your own unlisted or private material if your workflow depends on it.
- Break access: Use a defined window rather than a permanent exception.
Don't leave the blocker settings open in a tab. Sign out of YouTube if recommendations are the main trigger, close unused browser profiles, and start the lockout before opening your document. If you use a focus app, select a session length that matches the task and make cancellation harder than continuing for another few minutes.
The best block starts before avoidance begins.
Shorts should receive their own rule on mobile. The current YouTube controls support a Shorts feed limit of zero in supervised experiences, so use that targeted setting when long-form educational access matters. For a broader focus routine, a timer such as the MasteryMind focus feature can provide a visible session boundary without forcing you into a permanent ban.
Use the two-minute rule when resistance spikes. Work for two minutes before deciding whether you really need to override the block. Most urges lose force once the document, problem set, or spreadsheet is already open.
Your Layered Blocking Checklist
Start with the smallest intervention that can work, then add one layer for the bypass you use. A student who only loses time on a laptop doesn't need a complicated home firewall. A parent managing multiple devices shouldn't rely on a browser extension.
Set it up in this order
- Choose the primary blocker: Students and professionals should begin with a scheduled focus app or locked desktop blocker. Parents should begin with Screen Time or Family Link. Remote workers sharing a home network should start with router filtering.
- Add the missing device layer: If the first control covers a laptop, add phone restrictions. If it covers Wi-Fi, add a mobile-device rule for cellular use.
- Block the right surface: Use a full YouTube block when all access is disruptive. Use a Shorts limit or a selective allowlist when tutorials, lectures, or work recordings remain necessary.
- Enforce DNS at the router: Add domain and DNS rules for household-wide coverage, then stop devices from switching to outside resolvers.
- Use hosts-file blocking only when needed: It suits a personal workstation where you want a stubborn local barrier and have administrator access.
- Test the obvious escapes: Check private browsing, another browser, a VPN, and a device using mobile data. Fix the specific gap instead of adding random tools.
- Schedule recurring sessions: Put the block on your calendar, include defined breaks, and keep the rule active during the hours you regularly avoid work.
- Review after a consistent trial: Keep the setup unchanged long enough to judge whether it reduces interruptions. If it fails, identify the bypass, not your character, as the problem.
The single next action depends on your situation. Students should install a scheduled blocker and create the next study session now. Parents should configure the child's device restriction and router rule together. Remote workers should block YouTube during their next deep-work window, then test the phone before assuming the job is finished.
Kohru offers one-click Focus Sessions, custom blocklists, allowlists, and distraction blocking across a phone and laptop, so you can schedule YouTube-free work without relying on willpower. Start by setting one recurring study or work session, then visit Kohru to build the routine around the tasks you need to finish.
