How to block YouTube Shorts on Windows
Updated December 2026
To block YouTube Shorts on Windows 10 or Windows 11, choose between three proven methods: editing C:\Windows\System32\drivers\etc\hosts as Administrator followed by ipconfig /flushdns (free across Chrome, Edge, and Firefox), configuring Microsoft Family Safety for a child's Windows login (great for blocking both sites and Windows desktop apps), or installing Focus AI inside Chrome, Microsoft Edge, Brave, or Firefox. Because YouTube Shorts runs on youtube.com/shorts inside youtube.com, the Windows hosts file cannot block YouTube Shorts without blocking all of youtube.com; Focus AI evaluates the actual page inside Chrome or Edge so legitimate pages stay open. For adults, remote workers, and parents on Windows, Focus AI adds Always-On Site Blocker (up to 3 sites free, unlimited Pro), Quit Wall strict mode, and Friend/Parent Passcode Lock.
1. Block YouTube Shorts on Windows 10 & 11 via the hosts file (free)
- Open the Windows Start Menu, search for Notepad, right-click it, and click Run as administrator.
- Click File > Open, navigate to C:\Windows\System32\drivers\etc\, change the bottom-right dropdown from Text Documents (*.txt) to All Files (*.*), and open hosts.
- Paste the exact 127.0.0.1 and ::1 lines for YouTube Shorts shown below at the bottom of the file, then press Ctrl + S to save.
- Open Command Prompt and run ipconfig /flushdns, then close and reopen Chrome, Edge, or Firefox.
2. Block YouTube Shorts on Windows for kids with Microsoft Family Safety
- Ensure your child signs into Windows with a Standard (non-Administrator) Microsoft child account.
- Sign in at family.microsoft.com from your parent account, select the child, and open Content filters > Web and search.
- Enable web filtering, add youtube.com under Blocked sites, and block unmonitored browsers or desktop game launchers under Apps and games.
3. Block YouTube Shorts on Windows Chrome, Edge, Brave, or Firefox with Focus AI
- Install Focus AI from the Chrome Web Store (works natively in both Chrome and Microsoft Edge) or Mozilla Add-ons (Firefox).
- Enable Allow in Incognito (Chrome) or Allow in InPrivate (Edge) inside your browser's extensions page.
- Add youtube.com/shorts to Always-On Site Blocker (free for up to 3 sites) or run context-aware AI focus sessions, with optional Friend/Parent Passcode Lock on Pro.
Exact YouTube Shorts domains & subdomains (hosts file block)
Path-level note: YouTube Shorts lives at youtube.com/shorts. Blocking youtube.com via hosts file or DNS blocks the entire parent website. Use Focus AI to block only YouTube Shorts while keeping useful pages on youtube.com open.
Shorts uses the path youtube.com/shorts/<video-id> on the same domain as long-form tutorials. Blocking youtube.com in your hosts file or router breaks embedded course videos and technical documentation alongside Shorts.
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 127.0.0.1 youtu.be ::1 youtu.beNeed multiple sites? Open the free Hosts File Website Blocker Generator →
Try Focus AI live against YouTube Shorts
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
YouTube Shorts is a short-form video feed that pulls you away from "Building Next.js app".
What breaks YouTube Shorts blocks on Windows
On Windows 10 & 11, watch two common bypasses: Microsoft Family Safety's native web filter only filters Microsoft Edge unless you also block Chrome and Firefox under Family Safety App Limits, and Chrome/Edge Secure DNS (DoH) can ignore your Windows hosts file until Secure DNS is turned off.
YouTube Shorts ambushes you in the middle of legitimate work: you open YouTube to watch one coding tutorial or lecture, the Shorts shelf sits directly above the results, and one click drops you into an infinite vertical loop with no timeline and no visible stopping point.
Block YouTube Shorts on Windows and keep it blocked
Start free with 3 AI focus sessions and up to 3 always-blocked sites. Upgrade anytime for Friend/Parent Passcode Lock and unlimited protection.
Add Focus AI to ChromeFrequently asked questions
Why does Windows block me from saving the hosts file for YouTube Shorts?
You must open Notepad via Right-Click > Run as administrator. If saving still fails, check whether your antivirus software temporarily locks C:\Windows\System32\drivers\etc\hosts against edits.
Does Microsoft Family Safety block YouTube Shorts in Chrome on Windows?
No. Microsoft Family Safety web filtering enforces natively in Microsoft Edge only. Either restrict Chrome under Family Safety App limits, or install Focus AI with Parent Passcode Lock inside Chrome.
Does Focus AI work on Microsoft Edge on Windows 11?
Yes. Microsoft Edge supports Chrome Web Store extensions natively, so Focus AI runs on Edge with full Always-On Site Blocker, AI sessions, and Passcode Lock support.