Updated November 2026 · Published by Lukas Labs (maker of Sitefence).
Many people rely on YouTube for coding tutorials, lectures, and reference talks — so blocking all of youtube.com breaks real work. The problem is the vertical Shorts player at youtube.com/shorts/..., which turns a two-minute break into forty minutes of scrolling.
Editing your computer's hosts file only blocks entire domains. It can block youtube.com completely, but it cannot distinguish youtube.com/watch?v=... from youtube.com/shorts/.... To block only Shorts while keeping normal videos open, you need a Chrome extension that supports URL path rules.
youtube.com/shorts path with Sitefence (Free, no account)youtube.com/shorts
chrome://extensions → Sitefence → Details → turn on Allow in Incognito.Whenever you click a Shorts link or open the Shorts feed, Chrome redirects to Sitefence's calm block page while normal youtube.com/watch videos continue working untouched. The same URL path trick works for Instagram Reels (instagram.com/reels), X Explore (x.com/explore), or specific subreddits (reddit.com/r/popular).
Be aware of one honest trade-off: URL path blocking stops Shorts pages from opening, while the Shorts shelf may still appear visually on the YouTube homepage until clicked. If you specifically want to hide YouTube UI elements (Shorts shelves, comments, sidebar recommendations), dedicated YouTube UI extensions like Unhook or StayFocusd's YouTube controls handle visual hiding well — and you can combine them with Sitefence for cross-site blocking, schedules, and Pomodoro focus mode.
If you want a permanent domain-level block across every browser on Windows, macOS, or Linux, try our free Hosts File Website Blocker Generator.