How to block X (Twitter) on Chrome
X is quick to open and hard to close: one notification, then the For you timeline. Old twitter.com links now redirect to x.com, so one rule covers both. Then decide whether single posts shared in articles and chats should still open.
The short answer
Install focusmode, create a group and add x.com. Next time you open X (Twitter), a calm pause covers the page and you decide whether to go on.
Block X (Twitter) with focusmode
- Add focusmode to Chrome (free, works in Edge, Brave and Arc too).
- Create a group called X and add x.com. To keep shared posts readable, add !*x.com/*/status/* below it.
- Pick when the group is on:
- Always. The pause shows every time.
- On a schedule. For example weekdays 9:00 to 17:30.
- After a daily limit. Open freely until you've spent, say, 30 minutes, then pause.
- Choose the pause: a living shader, hold to continue, slide, pixels, an instant stop or a breathing exercise (Pro). Mix several and focusmode rotates them.
- Want no way around it for a while? Turn on strict mode for 1 to 15 minutes: no breaks, and the group can't be edited until the time is up.
Rules you can copy
| Rule | What it pauses |
|---|---|
x.com | All of X, including the timeline, profiles and posts |
x.com/home | Only the home timeline (For you and Following) |
!*x.com/*/status/* | Lets single posts through, so links from articles still open |
A line starting with ! is an exception: it's let through even when a broader rule matches.
Block X (Twitter) without an extension
Edit your hosts file
Add 0.0.0.0 x.com, 0.0.0.0 twitter.com and their www versions to the hosts file. X stops loading in every browser, including posts you were sent on purpose.
Stay on the Following tab
The home timeline has two tabs. For you is ranked and full of accounts you don't follow. Following shows only accounts you follow. Picking Following makes the timeline end sooner, but X still opens whenever you type it.
Mute words and turn off notifications
In X's settings you can mute words and topics and turn off push and email notifications. Fewer notifications means fewer reasons to open X. It doesn't limit how long you stay.
Why a pause works better than a wall
X rewards checking: there is always something new since the last refresh. A hard block often gets turned off the first time a post is shared with you. A pause before the timeline, with single posts let through, keeps X useful as a link and takes away the refresh habit.
Questions
Do I need to block twitter.com too?
No. twitter.com links redirect to x.com before the page loads, so the x.com rule catches them.
Can I block the timeline but still read posts people send me?
Yes. Add x.com, then !*x.com/*/status/* below it. A post link such as x.com/name/status/123 opens, and the timeline, Explore and profiles pause.
Will this block X in the mobile app?
No. focusmode is a desktop browser extension for Chrome, Edge, Brave and Arc. It works on x.com in your browser.
Try the pause on X (Twitter).
Free forever for one group. Lifetime Pro if you want more.
Add to Chrome