The short answer
- 1Do you need YouTube for this course? If you don't, block the whole site for the session. If you do, line up your lectures first, turn autoplay off, and use a tool that keeps lectures open but stops the feed.
- 2What is the fastest free fix? Turn off autoplay so the next video doesn't start by itself. Then open only a playlist you made before you started.
- 3Can you block YouTube but allow lectures? Yes. You can allow specific channels or addresses, hide the feed and Shorts, or use a blocker that checks each video against what you're studying.
- 4What about the phone? Turn autoplay off in the app, take the app off your home screen, and use your phone's own screen time tools. If you watch in Firefox for Android, browser extensions work there too.
Do you need YouTube for this study session?
Whether you need YouTube for the session decides which fix works, so answer that before you change any settings.
You don't need it tonight. Block the whole site until you finish. It's the simplest rule, and you won't have to think about it.
You need it for lectures or worked examples. Blocking everything also blocks your course. You need the lecture to stay open while the homepage, the sidebar and the next video stop pulling you away.
Which free fixes take two minutes?
The quickest free fix is YouTube's own autoplay switch. With autoplay on, another related video plays automatically after a video ends, and that is how one lecture turns into an hour of something else.
- Turn off autoplay on your computer. Use the autoplay switch at the bottom of the video player.
- Turn it off on your phone too. Tap your profile picture, then Settings, then Autoplay. YouTube says autoplay settings can differ between devices, so switching it off on one doesn't switch it off on the others.
- Make tonight's playlist first. Before you start, put the lectures you need in one playlist. During the session, open only that playlist, not the homepage or search.
- Use a separate study profile. Sign out, or use a browser profile you keep only for studying, so your usual recommendations don't follow you.
Watch history matters as well. YouTube says that if you have no relevant recent watch history and have said you don't want recommendations based on it, features like homepage recommendations are removed. You can pause or delete history from My Activity.
How do you block YouTube completely while studying?
To block YouTube completely, add it to a whole-site blocker and set a schedule or a timer for your study hours. LeechBlock NG is a free extension for Firefox, Chrome, Edge and other Chromium browsers that can block sites during set periods, after a time limit, or both.
BlockSite, Freedom and Cold Turkey are other well-known options. We compare them in BlockSite alternatives, LeechBlock alternatives and Freedom vs Cold Turkey. For browser settings, see how to block a website on Chrome.
The trade-off is that your lectures get blocked too.
Can you block YouTube but allow lecture channels or videos?
Yes. Some blockers let you block a site and then allow exceptions inside it. LeechBlock's FAQ shows a + prefix for sites to allow rather than block, and its site says you can use wildcards in site patterns. Some other extensions let you allow specific YouTube channels.
This suits a course that sticks to one or two channels. The trade-off shows up mid-session. Each new lecturer, a worked example from another channel, or a link your tutor sends means stopping to edit your rules.
Does hiding the feed and Shorts stop YouTube distraction?
Hiding the feed removes most of the pull, but not all of it. Unhook, for example, can hide the homepage feed, related videos, Shorts, comments and end-screen suggestions, and can turn off autoplay (Chrome Web Store listing, checked November 2026).
The gap is search. A video you open from search or from a link still plays, even if it has nothing to do with your exam. Read more in Unhook alternatives and, if Shorts are the main problem, how to block YouTube Shorts.
How do you block YouTube but allow educational videos?
To allow educational videos and stop everything else, use a blocker that judges each video against your task instead of a fixed list. Olungu is a browser extension that does this. You describe what you're studying in your own words, and it checks each page's address, title and a little page context against that task.
Say your task is "Studying for my organic chemistry exam: lectures and worked problems on SN1/SN2". A lecture on reaction mechanisms stays open, while an unrelated recommendation or a Short gets the intervention. You choose how strict that is: Block, Pause (a breathing pause, then you carry on or let it go), Grayscale, or Pause + gray.
- Gateway rule for YouTube: the homepage opens, and each video inside is checked.
- Feeds & sidebars: hide feeds, Shorts, comments and sidebars with one checkbox each. This is free on every plan, uses no AI checks and has no limit.
- Earned breaks: break time comes from your focus, for example 9 minutes after 45 minutes of focus.
- Dispute: if a lecture is stopped by mistake, explain why and it reopens right away if the review accepts it.
The free plan costs nothing, needs no card and includes a daily allowance of AI checks. Paid plans add your own AI key, analytics and, on Pro, unlimited AI checks.
Which option should you pick?
Pick the option that matches how much of YouTube your course needs.
| Approach | What stays open | What gets stopped | Trade-off | Best for |
|---|---|---|---|---|
| Free settings (autoplay off, playlist first, history paused) | Everything | Auto-starting next videos; homepage picks if history is off | Feed and sidebar may still show suggestions | Everyone, as step one |
| Block YouTube completely | Nothing on YouTube | All of YouTube | Lectures are blocked too | Sessions with no videos |
| Allow channels or addresses | The channels or pages you list | Everything else on YouTube | You edit rules for each new lecturer or link | Courses that use one or two channels |
| Hide feed, Shorts and recommendations | Any video you open | Homepage feed, sidebar, Shorts | Videos from search or links still play | People who mainly get pulled in by the feed |
| Check each video against your task | Videos that match what you're studying | Off-task videos, Shorts, feeds | You write a clear task description | Courses that use many channels |
How do you set it up for a study session?
- Write a specific task, for example: "Revising organic chemistry: SN1/SN2 lectures and worked problems. Distractions: gaming videos, Shorts, the homepage."
- Set YouTube as a Gateway site so each video is checked.
- Expect lectures and problem walkthroughs on your topic to stay open. Unrelated videos, Shorts and the home feed get stopped.
- Start with Pause or Grayscale, and switch to Block once you trust the results.
How do you stop watching YouTube on your phone while studying?
On a phone, start with the same free steps. Turn autoplay off in the YouTube app (profile picture, Settings, Autoplay), take the app off your home screen or log out, and use your phone's built-in screen time tools to limit it during study hours.
If you watch YouTube in Firefox for Android 142 or later, Olungu runs there too. See how to block websites on Firefox for Android for the setup.
FAQ
Can I block YouTube but keep my lecture playlist?
Yes. Open only a playlist you made before the session, turn off autoplay, and use either an exception rule for that playlist's address or a blocker that checks each video against your study task.
Does turning off autoplay stop recommendations?
Not on its own. Autoplay only controls whether the next related video starts automatically. To cut homepage recommendations, pause your watch history, or hide the feed with an extension.
Is it better to block YouTube completely while studying?
It is if your session doesn't need videos. If your course uses lectures or worked examples, a full block stops those too, so a channel allowlist, a feed hider or a context-based blocker fits better.
Sources
- Autoplay videos - YouTube Help - https://support.google.com/youtube/answer/6327615
- View, delete, or turn on or off watch history - YouTube Help - https://support.google.com/youtube/answer/95725
- LeechBlock NG - https://www.proginosko.com/leechblock/
- LeechBlock FAQ: Can I specify exceptions? - https://www.proginosko.com/leechblock/faq/exceptions/
- Unhook - Remove YouTube Recommended & Shorts (Chrome Web Store) - https://chromewebstore.google.com/detail/unhook-remove-youtube-rec/khncfooichmfjbepaaaebmommgaepoid