How to Block Twitter/X on Chrome
The fastest way to block Twitter/X on Chrome is a free extension: install ZalipOff, add x.com and twitter.com to your block list, and pick how firm the block should be. The whole setup takes about a minute, needs no account, and works immediately. Below you will also find the hosts file method, DNS and router blocking, and an honest answer about your phone, because the timeline always finds a way back.

Method 1: a browser extension (about one minute)
A browser extension is the quickest route because it needs no admin rights, no restart, and no system settings. It also lets you choose how firm the block is, which matters more than most people expect. Here is the setup with ZalipOff, a free Chrome extension:
- Install ZalipOff from the Chrome Web Store. There is no sign-up screen and no account; it works right after installing.
- Open the extension and add x.com and twitter.com to your blocked sites. Add both: years of old links still point at twitter.com and redirect straight into the timeline.
- Pick one of 12 coach characters. They range from a gentle zen master to a drill sergeant, so choose the tone you actually respond to when you are caught slacking.
- Choose a mode. Soft mode shows a small reminder card in the corner while the page stays usable. Hard mode dims the screen with a blocking overlay.
That is the whole setup. The next time you type an x into the address bar on autopilot, a 3D coach reacts instead of a cold error page. And if you ignore the reminder and keep drifting back, ZalipOff escalates automatically: a nudge first, then a real block. That escalation matches how Twitter actually pulls you in, one quick check at a time, which is why it works better than a flat wall.

Everything runs locally in your browser. ZalipOff does not transmit your browsing data anywhere, there is no premium tier, and there is no site limit. If you also lose hours to Reddit threads or any other feed, add those sites to the same list. The general process for any site is covered in our guide to blocking any site on Chrome.
One tip on tone: it matters more than it sounds. If a stern wall makes you rebellious, pick the zen master or the caring mom; if gentle taps roll right off you, the drill sergeant exists for a reason. You can switch characters anytime, so experiment until being caught feels motivating instead of annoying.

Try ZalipOff free: 12 character coaches, soft nudge or hard block, no account needed. Your data never leaves your browser. Add to Chrome.
Method 2: built-in tools
If you would rather not install anything, you have three options. All of them work. All of them are less convenient than they sound, and it is worth knowing why before you commit.
The hosts file
Every computer has a hosts file that maps domain names to addresses. Point Twitter at your own machine and the site stops loading in every browser:
- On Windows, open Notepad as administrator and edit C:\Windows\System32\drivers\etc\hosts. On a Mac, edit /etc/hosts with sudo in Terminal.
- Add the lines 127.0.0.1 x.com and 127.0.0.1 twitter.com.
- Save the file and flush your DNS cache.
Honest downsides: you need admin rights, there are no modes and no nuance, and unblocking means editing a system file again. Since you are the administrator, the block is exactly one undo away, and future-you at 11 pm knows where the file lives.
Router or DNS blocking
Most home routers can block domains for the whole network, and DNS services can filter social media as a category. This covers every device on your Wi-Fi, which is powerful, but it also blocks Twitter for everyone in the house, and it does nothing the moment your phone switches to mobile data.
Parental controls
Windows Family Safety and macOS Screen Time can restrict websites. They work, but they were designed for parents managing kids, so managing your own limits through them feels clunky, and you still hold the override password.
Close the side doors
Whichever method you pick, spend two minutes on the re-entry ramps. Turn off Twitter's email digests and browser notifications: every someone-just-posted alert is an engraved invitation past your own block. Log out in any browser you did not cover, and pull the bookmark off your toolbar. None of this blocks anything by itself, but it removes the prompts that make you test the block twenty times a day.
Method 3: on your phone
Honesty first: ZalipOff is a browser extension, so it does not cover the Twitter app on your phone. No Chrome extension does. On mobile, your options are an app timer in iOS Screen Time or Android Digital Wellbeing, deleting the app and keeping only the clunkier mobile site, or moving the icon off your home screen so opening it becomes a decision instead of a reflex. Our guide on how to stop scrolling your phone goes deeper on that side of the problem.

What actually works long-term
Twitter is engineered for the check-in loop: something is always happening, and the cost of one look feels like zero. That is why pure willpower fails, and why the nuclear options fail too, just more slowly. A block that only ever says no turns the timeline into forbidden fruit, and since you installed the block, you can uninstall it. Most people do, usually during a stressful week, which is exactly when doomscrolling hits hardest.
What holds up is friction plus feedback. A soft reminder from a character you picked interrupts the autopilot without triggering the rebellious part of your brain that hates being told what to do. When a nudge is not enough, automatic escalation to a hard block catches the genuine binge. You stay in charge of the rules; breaking them just stops being frictionless. The strategy behind this is covered in how to block distracting websites.
One practical tip: decide what Twitter is for before you block it. If your job genuinely needs it, run soft mode and let the coach guard the timeline while you post what you came to post. If it is pure leisure, block it hard during work hours and scroll guilt-free after dinner. Rules you chose yourself are the rules you keep.
Ready to try? Add ZalipOff to Chrome: free forever, 12 coaches, no account, and your data never leaves your browser.
Frequently asked questions
Should I block x.com or twitter.com?
Both. The site now lives at x.com, but years of old links, bookmarks and embeds still use twitter.com and redirect you straight to the timeline. Adding both domains takes ten extra seconds and closes the loophole.
Can I block the timeline but keep DMs?
Not surgically with a domain-level block. The practical compromise is ZalipOff soft mode: the page stays usable, so you can answer a DM, while the coach reminds you why you came. If you find yourself scrolling anyway, switch to hard mode and check messages on your phone.
Does the block work in incognito mode?
By default Chrome disables extensions in incognito. Open chrome://extensions, find ZalipOff, and enable Allow in Incognito to close that loophole. The hosts file method covers all windows automatically since it works below the browser.
Is ZalipOff really free?
Yes. There is no trial, no site limit, no premium tier, and no account. All data stays local in your browser and nothing is transmitted anywhere.