How to block YouTube Comments on Chrome
Updated December 2026
To block or hide YouTube comments on Chrome, use a Chrome filter extension (such as Unhook or Hide YouTube Comments) or YouTube's built-in Restricted Mode, and pair it with a task-aware blocker if comment scrolling is turning into multi-video procrastination. YouTube does not offer a simple native 'hide comments' toggle for regular adult accounts, and your computer's hosts file cannot hide comments without blocking all of YouTube. Note that enabling Restricted Mode hides comments across all videos, though it also hides many legitimate technical, medical, and finance videos that YouTube's automated filter flags. CSS filter extensions hide the comment section cleanly without censoring videos, while Focus AI protects the bigger boundary by blocking off-task videos, Shorts, and feeds altogether during focus sessions. Focus AI is free for 3 AI focus sessions and up to 3 always-blocked sites.
Option 1: Block YouTube Comments on Chrome with Focus AI (context-aware + Passcode Lock)
Focus AI gives you two ways to block YouTube Comments in Chrome, Edge, Brave, and Firefox: put it in the Always-On Site Blocker (up to 3 sites free, unlimited on Pro) for a permanent lock, or run a context-aware AI focus session that blocks distractions while allowing task-relevant pages. On Pro, you can lock your settings behind a Friend/Parent Passcode Lock so you cannot switch the block off on impulse.
- Install Focus AI from the Chrome Web Store (free for 3 AI focus sessions and up to 3 always-blocked sites, no account needed).
- Open
chrome://extensions, click Details on Focus AI, and turn on Allow in Incognito so private windows cannot bypass the block. - Add
youtube.com/watch#commentsto your Always-On Site Blocker, or type your active task and click Lock me in.
Option 2: Block YouTube Comments manually via the Mac or Windows hosts file (free)
youtube.com), not sub-paths like youtube.com/watch#comments. Adding the lines below blocks the entire parent site across every browser on your computer. If you only want YouTube Comments blocked while keeping useful parts of the site open, use Option 1 above.Restricted Mode (Profile Icon > Restricted Mode) removes comments natively without an extension, though it filters out some educational channels. A lightweight CSS blocker removes #comments only, while Focus AI guards the broader session.
Exact domains and hosts file lines for YouTube Comments:
127.0.0.1 youtube.com ::1 youtube.com 127.0.0.1 www.youtube.com ::1 www.youtube.com 127.0.0.1 m.youtube.com ::1 m.youtube.com
sudo nano /etc/hosts in Terminal, paste the lines at the bottom, press Control-O then Control-X, and flush DNS with sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.C:\Windows\System32\drivers\etc\hosts (file type: All Files), paste the lines, save, and run ipconfig /flushdns in Command Prompt.Blocking multiple sites at once? Build a full copy-paste blocklist with our free Hosts File Website Blocker Generator →
Option 3: Standard list-based Chrome blocker extensions
List-based extensions such as BlockSite, StayFocusd, or LeechBlock NG let you block youtube.com faster than editing system files. Two trade-offs remain: domain lists are all-or-nothing (blocking legitimate work resources alongside feeds), and most standard extensions can be disabled in two clicks when temptation spikes.
Blocking YouTube Comments on a Chromebook
On a personal Chromebook, Chrome extensions install just like desktop Chrome, so Focus AI (with Allow in Incognito and Parent Passcode Lock) works right away. For a child's supervised account, you can also block youtube.com from the parent's Google Family Link app. On school-managed Chromebooks, the school IT admin controls blocked sites and extension installs. See our full Chromebook website blocking guide.
Try Focus AI live against YouTube Comments
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
This YouTube video matches your task "Building Next.js app", so Focus AI lets it play while keeping Shorts blocked.
Why YouTube Comments keeps pulling you back
Scrolling down to read 'just the top comment' under a 6-minute explanation reliably turns into 20 minutes of argument chains, hot takes, and emotional friction that wipes out mental clarity.
Ready to block YouTube Comments without fighting yourself?
Start free with 3 AI focus sessions and up to 3 always-blocked sites. Add Friend/Parent Passcode Lock and unlimited protection anytime on Pro.
Add Focus AI to ChromeFrequently asked questions
Does YouTube have a built-in setting to hide comments?
Only indirectly via Restricted Mode, which hides all comment sections but also hides videos YouTube classifies as mature or sensitive.
Can a hosts file block YouTube comments without blocking videos?
No. Comments load from the same youtube.com origin as the video player, so hosts-file blocking is all or nothing.
How does Focus AI help if YouTube comments distract me?
Focus AI prevents you from opening off-task commentary and drama videos in the first place, keeping YouTube strictly limited to videos that match your stated work task.