How to block distracting websites while studying
Updated 23 November 2026
The short answer
Add your distracting sites to a website blocker extension like Stillwood and give it your study hours, for example weekday evenings, or start a 25, 50 or 90 minute focus session when you sit down. Put your phone away or turn on its focus mode, since a Chrome extension doesn’t reach it.
Why studying at a computer is hard
Your slides, notes and course site are in the same browser as YouTube and Instagram. The hard part of studying is the moment you get stuck on a problem. That’s when a new tab feels like a short break. A blocker takes that easy exit away, so you stay with the problem a little longer.
Method 1: block sites during your study hours with Stillwood
- Install Stillwood for Chrome and pick the sites that pull you away: YouTube, Instagram, TikTok, Reddit and others. Type any other site under Not on the list? Type a site.
- Set My own days and hours to match when you study, for example Monday to Thursday, 17:00–21:00. Late sessions like 22:00–01:00 work too.
- If your study time changes every day, choose Only when I press “Start focus”. When you sit down, pick 25, 50 or 90 minutes or All day and press Start focus.
- Switch the site that costs you the most to Closed. Keep the others on Pause & ask why, so you can still open them for 10 minutes when you have a reason.
Before an exam, turn on Strict mode. While a focus session or your scheduled hours are on, you can’t switch protection off, remove a site or change the schedule. You can still add sites.
Keep YouTube for lectures
Many courses live on YouTube, so blocking it completely often doesn’t work. While Stillwood’s protection is on, YouTube’s home feed, recommendations, Shorts and end screens are hidden, and search keeps working. Search for the lecture you need, watch it, and nothing suggests the next video. On the pause screen, Need it for work opens YouTube in search-only mode for 10 minutes.
Every 20 focused minutes grows a ring. If something pulled you away, the ring gets an orange edge. It’s a simple way to see how an evening went.
Method 2: the hosts file for exam weeks
If you want the worst sites gone for a few weeks, add them to your hosts file (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on Mac), for example 127.0.0.1 www.instagram.com, and restart the browser. It blocks the site in every browser on that computer. There’s no schedule and no exception for a lecture, so it fits sites you don’t need for your course at all.
Method 3: deal with your phone too
A Chrome extension only works on your computer, and the phone next to your laptop can undo it. Put it in another room or in a bag while you study. If you need it nearby, use Focus on iPhone or Focus mode in Digital Wellbeing on Android to pause distracting apps for the session.
Which one to choose
If you study at the same times each week, a schedule is the least effort: it starts on its own and ends on its own. If your days change, press Start focus when you sit down. Use the hosts file only for sites you won’t need again until exams are over.
Questions
Can I block websites only in the evening when I study?
Yes. In Stillwood choose “My own days and hours” and set your study window, for example 17:00–21:00. Windows that cross midnight work too.
Can I still watch lectures on YouTube?
Yes. While protection is on, Stillwood hides YouTube’s home feed, recommendations, Shorts and end screens, and search keeps working, so you can find the lecture you need.
Does it work on a computer my school manages?
Only if you’re allowed to install extensions. On a managed computer, the school’s IT team decides which extensions can run, and they may already block some sites for you.