How to block X (Twitter) on Chrome
Updated December 2026
To block X (Twitter) on Google Chrome, install a strict website blocker extension such as Focus AI and enable Allow in Incognito at chrome://extensions so private windows cannot bypass your lock. Chrome has no native "block this site" button on personal laptops, so extensions are the fastest method while Chrome's URLBlocklist enterprise policy or your computer's hosts file provide admin-level alternatives. Focus AI lets you lock x.com permanently inside the Always-On Site Blocker (up to 3 sites free, unlimited Pro) or allow task-relevant pages during AI focus sessions. For maximum willpower protection, enable Focus AI's Quit Wall strict mode or Friend/Parent Passcode Lock so X (Twitter) cannot be unlocked in two clicks during a moment of boredom. Focus AI is free for 3 AI focus sessions and up to 3 always-blocked sites.
1. Block X (Twitter) on Chrome with Focus AI (Always-On + Passcode Lock)
- Install Focus AI from the Chrome Web Store (free for 3 AI focus sessions and up to 3 always-blocked sites, no account required).
- Open chrome://extensions, click Details on Focus AI, and turn on Allow in Incognito so private tabs cannot bypass the block.
- Add x.com to Focus AI's Always-On Site Blocker for a permanent lock, or type your current work task to block X (Twitter) automatically during focus sessions.
- Optional strict upgrade: turn on Friend/Parent Passcode Lock on Pro so someone you trust holds the unlock code.
2. Block X (Twitter) in Chrome using Chrome Managed Policy (URLBlocklist)
- On Windows, open Registry Editor as Administrator and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\URLBlocklist.
- Add a String Value named 1 containing x.com (plus additional values for companion domains like www.x.com, mobile.x.com).
- Restart Google Chrome and visit chrome://policy to confirm URLBlocklist is loaded across normal and Incognito windows.
3. Check Chrome Secure DNS if using a hosts file
- If you block X (Twitter) via your Mac or Windows hosts file instead of an extension, open chrome://settings/security and toggle off Use secure DNS (DoH) if Chrome still loads x.com.
- Fully quit and reopen Chrome after flushing your operating system DNS cache.
Exact X (Twitter) domains & subdomains (hosts file block)
Because X migrated from twitter.com to x.com while maintaining redirects and t.co link wrappers, half the manual lists online miss one of the domains. Blocking all 7 hostnames (x.com, www.x.com, mobile.x.com, twitter.com, www.twitter.com, mobile.twitter.com, t.co) in IPv4 and IPv6 closes the redirect leak.
127.0.0.1 x.com ::1 x.com 127.0.0.1 www.x.com ::1 www.x.com 127.0.0.1 mobile.x.com ::1 mobile.x.com 127.0.0.1 twitter.com ::1 twitter.com 127.0.0.1 www.twitter.com ::1 www.twitter.com 127.0.0.1 mobile.twitter.com ::1 mobile.twitter.com 127.0.0.1 t.co ::1 t.coNeed multiple sites? Open the free Hosts File Website Blocker Generator →
Try Focus AI live against X (Twitter)
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
X (Twitter) (social feed) does not serve "Building Next.js app".
What breaks X (Twitter) blocks on Chrome
On Google Chrome, three traps break X (Twitter) blocks: forgetting Allow in Incognito at chrome://extensions, leaving Chrome Secure DNS enabled when using a hosts file, and clicking into a second unblocked browser profile. Enable Allow in Incognito first and install Focus AI on every Chrome profile you use.
X is the easiest feed for founders, engineers, and knowledge workers to disguise as 'staying informed.' The For You algorithm elevates outrage and hot takes because arguments drive replies, turning a 90-second industry check into 45 minutes of fragmented attention.
Block X (Twitter) on Chrome 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
How do I block X (Twitter) in Chrome Incognito mode?
Open chrome://extensions, click Details on Focus AI (or your blocker extension), and toggle on Allow in Incognito. Chrome disables extensions in private windows by default until you flip that switch.
Can I block X (Twitter) on Chrome with a password someone else holds?
Yes. Focus AI Pro includes Friend/Parent Passcode Lock so a trusted friend, partner, coach, or parent can lock your always-blocked sites and strict settings behind a passcode you do not know.
Does blocking X (Twitter) on Chrome without an extension work?
Yes: you can add x.com, www.x.com, mobile.x.com to your Mac or Windows hosts file or set Chrome's URLBlocklist policy, though both require admin access and block the whole domain.