DeskTails

How to Block YouTube on Chrome While You Study or Work

Your options without an extension, the YouTube settings that tame the feed, and how to block YouTube only while your focus timer runs.

By the DeskTails team · Published · Updated

The simplest answer to how to block YouTube on Chrome is to install a website blocker extension and add youtube.com to its list. Chrome has no built-in switch for this on a normal adult account. If you still need YouTube for lectures or downtime, use a blocker that only shuts YouTube off while a focus timer runs, or keep YouTube and switch off the feed that pulls you in.

A cat on a chair in a cozy focus room, the timer that decides when to block YouTube on Chrome
A sample pet in the DeskTails focus room (our product).

Can you block YouTube in Chrome without an extension?

Only in roundabout ways. Chrome’s own site blocking is built for parents and IT admins, not for an adult who wants to stop watching videos at 3 p.m. The no-extension options all work, but each blocks YouTube all day and takes some effort to undo.

MethodWho it’s forWhen it blocks
Google Family LinkA parent managing a child’s Google accountUntil the parent removes the site
Chrome policy (URLBlocklist)Managed work or school browsersUntil an admin changes the policy
Your computer’s hosts fileAnyone with admin rights and some patienceAll day, in every browser
A blocker extensionBlocking yourselfAlways, on a schedule, or only during focus

Family Link lets a parent block sites for a child who signs in to Chrome. The URLBlocklist policy is how a company or school stops a list of URLs on browsers it manages; Google documents it for admins using the Admin console, Windows Group Policy or a Mac configuration file. Editing the hosts file points youtube.com at your own machine so nothing loads, which also means YouTube stays dead until you edit the file again.

So for your own study or work time, how to block YouTube on Chrome comes down to an extension. The question is which kind.

Should you block all of YouTube, or just the parts that pull you in?

It depends on whether you need YouTube to do your work. If you only drift there, block the whole site during focus time. If your course lives on YouTube, blocking it outright will just make you switch the blocker off, so tame the feed instead and save the full block for work that doesn’t need video.

There is research behind the “tame the feed” idea. In a CHI 2021 study, Lukoff and colleagues surveyed 120 YouTube users in the US and found that autoplay and recommendations mostly undermined people’s sense of control over their viewing, while search and playlists supported it. In other words, going to YouTube on purpose for one video is rarely the problem. The next video is.

Three settings in YouTube itself do a lot of the work:

  • Turn off and clear your watch history. You do this on your Google My Activity page, under the YouTube controls. YouTube’s help page says that when you have no significant recent watch history and don’t want recommendations based on it, recommendations on the YouTube homepage are removed. The homepage you open to watch a lecture stops offering you ten other things first.
  • Switch off autoplay. On a computer, the autoplay switch is at the bottom of the video player. YouTube saves it per device, so set it on each computer you study on.
  • Watch from a playlist. Save the lectures you need to a playlist before you start and open that, not the homepage. It is a small habit that keeps you in “search and playlists” mode.

These changes make YouTube calmer, not unavailable. If you open it out of habit rather than need, you still need a block.

How do you block YouTube only while you study or work?

Use a blocker that is tied to your focus timer, so YouTube shuts off when you press start and comes back when your break begins. You never have to remember to switch it on, and you keep YouTube for breaks and evenings, which makes the block much easier to live with than an all-day ban.

That is how the DeskTails Focus Blocker works. It is the extension for DeskTails, the pet focus timer we make, so treat this as our own product talking. Here is the setup:

  1. Add the extension. Install the DeskTails Focus Blocker from the Chrome Web Store. It is free to install and also runs in Microsoft Edge.
  2. Connect it. In DeskTails, open Settings → Browser extension and press Connect this browser. The extension picks up the connection on its own. There is no code to copy.
  3. Check that YouTube is on the list. youtube.com is on the starter blocklist already. Click the paw icon, then Edit blocklist to see it. The Video quick-add button adds YouTube, Twitch, Netflix, Hulu and Disney+ in one click if you cleared the list earlier.
  4. Start a focus session. The pop-up switches to “Blocking is on” with the time left. When the timer rings for a break, YouTube opens normally again.
DeskTails Focus Blocker blocklist page with youtube.com listed and a Video quick-add button
The blocklist page. youtube.com is on the starter list; the Video button adds the big streaming sites together.

A blocked entry covers the whole site, including subdomains, so youtube.com also stops m.youtube.com and music.youtube.com. Short youtu.be links forward to youtube.com, so they land on the blocked page too.

What happens to a YouTube tab that’s already open?

It gets paused too. When your session starts, the extension checks your open tabs and sends any YouTube tab to a “Stay focused” page, usually within about a minute. When the session ends, the tab goes back to the video you were on.

This matters more for YouTube than for most sites. YouTube moves between videos without loading a new page, so a blocker that only stops new page loads would let a tab you already had open keep playing, and keep suggesting the next video, for the whole session. Sweeping open tabs closes that gap.

The Stay focused page shown in place of YouTube, with a countdown of the focus time left
What a YouTube tab turns into mid-session. It steps back to the video when the session ends.

If you suddenly need a video for the task in front of you, open the pop-up and switch off Block sites during focus, or remove youtube.com from your list for that subject. It is a nudge, not a lock, on purpose.

DeskTails Focus Blocker pop-up showing Blocking is on, the time left and the Block sites during focus switch
The pop-up during a session. The switch turns blocking off if a task really needs a video.

What won’t this block?

A site blocker works on whole websites in one browser, so a few things slip past it. Knowing them up front saves you from wondering why a video is still playing.

  • Shorts alone. The DeskTails blocker blocks youtube.com as a whole. It can’t remove Shorts and leave long videos. If you want that, you need a YouTube-specific extension instead.
  • Videos embedded on other sites. A YouTube player inside a news article or a course page isn’t a YouTube tab, so it still plays.
  • Other browsers and your phone. The extension runs in Chrome and Edge on a computer only. DeskTails has no phone app. The YouTube phone app does have a “Remind me to take a break” setting under Settings, then General, which is worth turning on.
  • Blocking needs Pro. The extension installs and connects free; blocking itself is part of DeskTails Pro ($3.99 a month or $19.99 a year). New accounts get 7 days of Pro free with no card, so you can test it on a real week first.

Our guide to blocking distracting websites covers the research on blocking in general and the rest of the blocker’s settings. This page is only about YouTube.

How do you make a YouTube block stick?

Keep the block short and predictable. A block that ends when your session ends asks for 25 or 50 minutes of patience, not a whole day, so you are far less likely to switch it off. Then give YouTube a real slot, like your long break or the evening, so it stops feeling forbidden.

  • Write the task down first. Put what you’ll do in the task list next to the DeskTails timer before you start. An empty session is the easiest one to drift out of.
  • Pick a length you can finish. Our guide to Pomodoro intervals compares 25/5, 50/10 and other splits.
  • Have somewhere to go on your break. A short walk or a drink of water ends on its own; a feed doesn’t.

Your pet sits on the chair through every session, and each completed session of 10 minutes or more earns them 5 Treats to spend in the Desk Shop. Drop in a photo of your cat or dog to see them in the focus room before you sign up.

Frequently asked questions

Is there a setting in Chrome to block YouTube?

Not for a normal adult account. Chrome’s site blocking lives in Google Family Link, which a parent uses for a child’s account, and in the URLBlocklist policy that companies and schools use on managed browsers. For blocking YouTube on your own computer, a website blocker extension is the simplest option.

How do I block YouTube on my laptop but still watch lectures?

Do two things. Turn off and clear your watch history and switch off autoplay, so opening YouTube for a lecture doesn’t show you a feed. Then use a blocker that only runs during focus sessions for work that doesn’t need video, and remove YouTube from the list on days your course needs it.

Can I block YouTube Shorts but keep regular videos?

Not with a whole-site blocker. The DeskTails Focus Blocker blocks youtube.com as a whole, Shorts included, during focus sessions. Hiding only Shorts needs an extension that edits YouTube’s pages. Turning off watch history also removes homepage recommendations, which cuts down how often Shorts are pushed at you.

Will blocking YouTube in Chrome block it on my phone?

No. A Chrome extension only works in that browser on that computer. DeskTails has no phone app, so it can’t block the YouTube app. On your phone, the YouTube app’s “Remind me to take a break” setting helps, and leaving the phone in another room during focus sessions helps more.

Is the DeskTails YouTube blocker free?

The extension is free to install and connect, and youtube.com is on its starter list. Blocking during focus sessions is a Pro feature: $3.99 a month or $19.99 a year. New accounts get 7 days of Pro free with no card, so you can try a week of YouTube-free focus first.

Sources

Written by the DeskTails team. We build DeskTails, a focus timer that puts your own pet on your desk, so we write about focus from the inside. Where we mention our own product, we say so.

Put your own pet on your desk

Upload a photo and see your cat or dog in a cozy focus room in under a minute. Free, right in your browser.

Free to sign up · No card needed · Pro free for 7 days

Keep reading