How to Block X (Twitter) on Your Computer, Including t.co Links
Block X (Twitter) on a Windows PC or Mac in every browser and the desktop app. Covers x.com, twitter.com, twimg and t.co, plus schedules and trade-offs.
Updated October 2026 · 6 min read
Why X is worth blocking on the desktop specifically
On a computer, X is the tab you open between compiles, the second monitor that refreshes itself, and the place where news, tech gossip and explicit content all share one feed. X permits adult content on the platform, and a "sensitive media" toggle is the only thing between your timeline and it. If you are trying to stay focused or stay clean, a full block on your work machine is usually simpler than trying to curate it.
The domains X actually uses
Blocking only x.com leaves gaps. X still answers on twitter.com, serves images and video from twimg.com, and wraps every outbound link in t.co. A thorough block needs all four. That also means one side effect: any t.co link shared elsewhere, for example in an email newsletter, will fail while the block is on.
Free methods
- Windows: as admin, add
0.0.0.0 x.com,0.0.0.0 twitter.com,0.0.0.0 www.x.com,0.0.0.0 www.twitter.comand0.0.0.0 t.cotoC:\Windows\System32\drivers\etc\hosts, thenipconfig /flushdns. - Mac: add
x.comandtwitter.comunder Screen Time → Content & Privacy restricted sites, with someone else holding the passcode. - Inside X: keep Display media that may contain sensitive content switched off in privacy settings. It is a preference, not a lock.
Media subdomains like pbs.twimg.com and video.twimg.com need separate hosts lines, which is easy to miss.
Block X with NoorI
- Enroll your computer with the free Cloudflare One app (Windows or Mac).
- In Content Policy, create a rule and add the X (Twitter) app. It covers
x.com,twitter.com,twimg.comandt.co, every subdomain included. - Optionally add a schedule, such as weekdays during working hours.
- Test in a normal window, a private window and the X desktop app if you have it.
App blocks and schedules need Pro ($9.99/month, 7-day free trial, up to 10 devices). Phones are covered by the mobile X guides in this section once the phone is enrolled.
Staying informed without the feed
- Follow the few accounts you care about through their blogs, newsletters or RSS feeds instead.
- Use release notes and changelogs for tech news rather than announcement threads.
- If you are blocking X during work hours, schedule a fixed 20-minute window later in the day.
Most people find the urge fades within a week once the tab simply does not load.
Making the block hold
Run your daily account as a standard (non-admin) user so the Cloudflare One app stays installed. Then turn on Guardian Mode: removing the X rule or pausing filtering needs your accountability partner to approve by email, then waits out a delay you set (minimum 4 hours) before a 30-minute edit window. Adding new blocks is never locked, so tightening rules stays instant. For the VPN gap, read bypass prevention. Blocking X for a teenager? See per-child rules.
Frequently asked questions
Do I need to block both twitter.com and x.com?
Yes. Both domains still serve the site, and images and video come from twimg.com. NoorI's X app entry covers all of them plus t.co.
Why do some links in emails stop working after I block X?
Links shared on X are wrapped in t.co redirects. Blocking X properly blocks t.co too, so those redirect links fail while the block is active.
Can I block X only during work hours?
Yes. Add a schedule to the X rule in NoorI. Scheduling is available on Pro.