How to Block Twitter (X) on Mac
Twitter — or X, if you've adopted the rebrand — is a unique productivity killer. It doesn't waste your time with long videos or deep reading. It wastes it in tiny increments. You check the timeline for ten seconds, see something outrageous, read the replies, check a trending topic, and suddenly twenty minutes are gone. It's death by a thousand tweets.
Blocking Twitter on a Mac has an extra complication: both twitter.com and x.com are active domains. Block one and miss the other, and you've accomplished nothing. The steps below cover both.
Here's every method for blocking Twitter on your Mac, from the simplest to the most robust.
Method 1: macOS Screen Time (Built-in, Free)
macOS has a built-in content restriction system that can limit Twitter access.
Setup steps:
- Open System Settings > Screen Time
- Turn on Screen Time if it's not already enabled
- Click App & Website Activity, then turn it on
- Go to App Limits > click the + button
- Expand the Websites category and add both
twitter.comandx.com - Set the time limit to 0 minutes (or 1 minute)
- Click Done
Pros:
- Built into macOS, nothing to install
- Free
- Can also limit the Twitter/X Mac App Store app
Cons:
- Only works in Safari — Chrome, Firefox, Arc, and other browsers are completely unaffected
- Has a "one more minute" button that instantly bypasses the limit
- You can turn off Screen Time entirely with your password
- No timer integration — it's always-on or always-off based on schedule
- You need to remember to add both twitter.com and x.com
Verdict: A gentle nudge for Safari users. Not real blocking.
Method 2: Browser Extension (Free)
Install an extension that blocks Twitter within a specific browser.
For Chrome: Install BlockSite or StayFocusd from the Chrome Web Store.
For Firefox: Install LeechBlock NG from Firefox Add-ons.
For Safari: Options are limited. 1Blocker has some blocking capability.
Setup: Install the extension, add both twitter.com and x.com to the blocklist, set your blocking schedule.
Pros:
- Easy to install
- Most are free
- Some have scheduling features (block during work hours, allow evenings)
Cons:
- Only works in one browser — switch browsers and Twitter is right there
- Can be disabled in seconds (click the extension icon > disable)
- Many extensions don't work in incognito/private mode by default
- You need a separate extension for each browser you use
- Won't block the Twitter/X Mac App Store app
- You must add both domains to the blocklist
Verdict: Good enough if you only use one browser, don't have the Mac app installed, and have moderate self-control. Too easy to bypass otherwise.
Method 3: Edit the Hosts File (Free, System-Level)
The hosts file is a system file that maps domain names to IP addresses. By pointing Twitter's domains to your own machine, you block it across all browsers.
Setup steps:
- Open Terminal (Applications > Utilities > Terminal)
- Type:
sudo nano /etc/hosts - Enter your Mac password when prompted
- Add these lines at the bottom of the file:
127.0.0.1 twitter.com
127.0.0.1 www.twitter.com
127.0.0.1 x.com
127.0.0.1 www.x.com
127.0.0.1 mobile.twitter.com
- Press Control + O to save, then Control + X to exit
- Flush the DNS cache:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Twitter is now blocked in every browser on your Mac. Both the old twitter.com and the new x.com domains are covered.
To unblock: Repeat the process and delete the lines you added.
Important note: If you have the Twitter/X app from the Mac App Store installed, the hosts file alone may not block it completely. The app may use different connection methods. Delete the app or use a system-level blocker for full coverage.
Pros:
- Works across all browsers
- Free
- No software to install
- Hard to bypass impulsively (requires Terminal and sudo access)
- Covers both twitter.com and x.com
Cons:
- Manual process — no scheduling or timer integration
- May not fully block the native Mac App Store app
- You need to be comfortable with Terminal
- Changes persist until you manually undo them
- Embedded tweets on other sites will also break
Verdict: Effective and free for browser-based Twitter access. If you also have the Mac app, you'll need to delete it or use an additional method.
Method 4: SelfControl App (Free, System-Level)
SelfControl is a free, open-source macOS app that blocks websites by modifying your hosts file and firewall rules. Its standout feature: once a block is set, it cannot be removed until the timer expires — not even by restarting your computer, deleting the app, or rebooting in safe mode.
Setup steps:
- Download SelfControl and install it
- Add both
twitter.comandx.comto the blocklist - Set the timer duration (15 minutes to 24 hours)
- Click Start
That's it. Twitter is blocked and there's no going back until the timer runs out.
Pros:
- Completely free and open-source
- Truly irreversible blocking — the nuclear option
- Works across all browsers
- Simple interface
Cons:
- No scheduling — you manually start each block session
- No task management or productivity features
- Irreversibility can be a problem if you legitimately need to access Twitter for work
- Interface is minimal and dated
- Only blocks websites, not the native Mac app
Verdict: The best free option if you need blocking you genuinely cannot bypass. Just make sure to add both domains and delete the Mac app if you have it.
Method 5: Focuh (Free, System-Level + Timer + Tasks)
Focuh is a free macOS focus app that combines system-level website and app blocking with a focus timer and task management.
Setup steps:
- Download Focuh and install it
- Add
twitter.comandx.comto your blocked sites list in Settings - Grant Accessibility permission when prompted (one-time setup)
- Start a focus session — Twitter is blocked for the duration
Pros:
- Free
- System-level blocking across all browsers (uses macOS Accessibility APIs)
- Can also block the native Twitter/X app, not just the website
- Timer integration — blocking is tied to focus sessions, not always-on
- Task board for planning what to work on during each session
- Google Calendar sync
- Live timer countdown in the menu bar
Cons:
- macOS only — no Windows or Linux support
- Blocking can technically be disabled by revoking Accessibility permission in System Settings
- Relatively new app compared to established tools
Verdict: Best option if you want Twitter blocking that covers both the website and the Mac app, integrated with a focus timer and task system.
Method 6: Cold Turkey Blocker (Paid, System-Level)
Cold Turkey is a paid blocker ($39 one-time) that offers the most comprehensive blocking features on macOS, including locked blocks that can't be disabled.
Setup steps:
- Download Cold Turkey Blocker and install it
- Create a blocklist and add Twitter (both domains)
- Schedule blocks or start them manually
- Optionally enable "locked" mode to prevent disabling
Pros:
- Extremely difficult to bypass in locked mode
- Detailed scheduling (block during work hours, allow evenings and weekends)
- Can block apps, websites, and even the entire internet
- Works across all browsers
Cons:
- $39 one-time purchase for full features
- Free version is very limited
- Can feel overly restrictive
- No task management or integrated timer
Verdict: The most powerful blocking tool if you're willing to pay. Best for people who have tried other methods and keep finding ways to bypass them.
Which Method Should You Use?
If you need a quick, free solution: Edit the hosts file. Make sure you add both twitter.com and x.com domains, and delete the Mac app if you have it.
If you need blocking you literally cannot bypass: SelfControl. The irreversibility is the point.
If you want blocking integrated with a focus workflow: Focuh. Timer + blocker + task board in one free tool, and it can block the native app too.
If you've tried everything else and keep bypassing it: Cold Turkey with locked mode. It's the highest-friction option available.
If you just want a gentle reminder: A browser extension. But be honest about whether a gentle reminder has ever stopped you from checking Twitter "just one more time."
The Algorithm Runs on Outrage
Twitter isn't designed to inform you. It's designed to engage you, and outrage is the most engaging emotion. The algorithm surfaces tweets that provoke reactions — not because it's malicious, but because that's what gets clicks, replies, and time spent on the platform.
Every notification is a tiny hook. Someone liked your tweet. Someone replied. Someone quote-tweeted you. Each one pulls you back in, and once you're there, the timeline is waiting with fresh takes, breaking news, and arguments you feel compelled to weigh in on. The character limit makes each tweet feel like nothing — just a few seconds to read — so you never feel like you're spending real time. But those seconds compound.
Block Twitter during your focused work time. If you use it for work (many people genuinely do), set specific times for checking it rather than leaving it open in a tab. The goal isn't to quit Twitter — it's to stop it from hijacking every idle moment of your workday.