How to block TikTok on Windows
Updated December 2026
To block TikTok 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. Adding tiktok.com, www.tiktok.com, m.tiktok.com, vm.tiktok.com, vt.tiktok.com to the Windows hosts file stops TikTok system-wide without extra software, though anyone with Windows Administrator rights can delete those lines in seconds. 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 TikTok 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 TikTok 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 TikTok 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 tiktok.com under Blocked sites, and block unmonitored browsers or desktop game launchers under Apps and games.
3. Block TikTok 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 tiktok.com 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 TikTok domains & subdomains (hosts file block)
TikTok plays videos in Chrome without requiring a login, which makes Incognito mode an effortless bypass unless your extension is enabled for Incognito. In your hosts file, include vm.tiktok.com and vt.tiktok.com so shortened shared links stop redirecting.
127.0.0.1 tiktok.com ::1 tiktok.com 127.0.0.1 www.tiktok.com ::1 www.tiktok.com 127.0.0.1 m.tiktok.com ::1 m.tiktok.com 127.0.0.1 vm.tiktok.com ::1 vm.tiktok.com 127.0.0.1 vt.tiktok.com ::1 vt.tiktok.comNeed multiple sites? Open the free Hosts File Website Blocker Generator →
Try Focus AI live against TikTok
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
TikTok is a short-form video feed that pulls you away from "Building Next.js app".
What breaks TikTok 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.
TikTok's For You feed tracks dwell time in milliseconds and recalibrates every few swipes, so 'watching one linked clip' on desktop reliably becomes forty minutes before you notice your work tab is still blank.
Block TikTok 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 TikTok?
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 TikTok 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.