How to block WhatsApp Web on Chrome

Sameed Ahmad
By Sameed Ahmad, who builds Focus AI (so read the Focus AI parts with that in mind).
Updated December 2026

To block WhatsApp Web on Chrome without affecting your phone, add web.whatsapp.com to a Chrome website blocker extension or map web.whatsapp.com to 127.0.0.1 and ::1 in your computer's hosts file. Keeping WhatsApp pinned in a browser tab turns every family group chat, meme forward, and side conversation into an instant desktop interruption. Blocking web.whatsapp.com only stops the browser tab on your computer; urgent calls and messages still arrive normally on your phone. Enable Allow in Incognito at chrome://extensions so you do not re-pair a QR code in a private tab mid-sprint. If you sometimes use WhatsApp Web for client communication, Focus AI lets you open it only during client-comms sessions while blocking it automatically during deep work. Focus AI is free for 3 AI focus sessions and up to 3 always-blocked sites.

Option 1: Block WhatsApp Web on Chrome with Focus AI (context-aware + Passcode Lock)

Focus AI gives you two ways to block WhatsApp Web in Chrome, Edge, Brave, and Firefox: put it in the Always-On Site Blocker (up to 3 sites free, unlimited on Pro) for a permanent lock, or run a context-aware AI focus session that blocks distractions while allowing task-relevant pages. On Pro, you can lock your settings behind a Friend/Parent Passcode Lock so you cannot switch the block off on impulse.

  1. Install Focus AI from the Chrome Web Store (free for 3 AI focus sessions and up to 3 always-blocked sites, no account needed).
  2. Open chrome://extensions, click Details on Focus AI, and turn on Allow in Incognito so private windows cannot bypass the block.
  3. Add web.whatsapp.com to your Always-On Site Blocker, or type your active task and click Lock me in.

Option 2: Block WhatsApp Web manually via the Mac or Windows hosts file (free)

Block web.whatsapp.com specifically (plus wa.me if you click chat links). Note that blocking web.whatsapp.com in Chrome does not stop the native macOS or Windows WhatsApp desktop app; quit that app during deep work.

Exact domains and hosts file lines for WhatsApp Web:

127.0.0.1 web.whatsapp.com
::1 web.whatsapp.com
127.0.0.1 whatsapp.com
::1 whatsapp.com
127.0.0.1 www.whatsapp.com
::1 www.whatsapp.com
127.0.0.1 wa.me
::1 wa.me
Apply on Mac
Run sudo nano /etc/hosts in Terminal, paste the lines at the bottom, press Control-O then Control-X, and flush DNS with sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
Apply on Windows
Open Notepad as Administrator, open C:\Windows\System32\drivers\etc\hosts (file type: All Files), paste the lines, save, and run ipconfig /flushdns in Command Prompt.

Blocking multiple sites at once? Build a full copy-paste blocklist with our free Hosts File Website Blocker Generator →

Option 3: Standard list-based Chrome blocker extensions

List-based extensions such as BlockSite, StayFocusd, or LeechBlock NG let you block web.whatsapp.com faster than editing system files. Two trade-offs remain: domain lists are all-or-nothing (blocking legitimate work resources alongside feeds), and most standard extensions can be disabled in two clicks when temptation spikes.

Blocking WhatsApp Web on a Chromebook

On a personal Chromebook, Chrome extensions install just like desktop Chrome, so Focus AI (with Allow in Incognito and Parent Passcode Lock) works right away. For a child's supervised account, you can also block web.whatsapp.com from the parent's Google Family Link app. On school-managed Chromebooks, the school IT admin controls blocked sites and extension installs. See our full Chromebook website blocking guide.

Interactive Demo · Zero Install

Try Focus AI live against WhatsApp Web

Pick or type a real work task, then test any URL to see what stays open and what gets blocked.

web.whatsapp.com

Chat tabs fragment deep work during "Building Next.js app". Check messages after the timer ends.

BLOCKED
Session check log for “Building Next.js app”
Simulated client-side demo. In Chrome, Focus AI runs live on every tab during active sessions.Add Focus AI to Chrome
Why this site breaks focus

Why WhatsApp Web keeps pulling you back

A pinned WhatsApp Web tab shows live unread counts right in your browser tab strip, pulling your working memory out of complex tasks every few minutes even when notifications are muted.

Best blocking strategy for WhatsApp Web: Great candidate for session-based blocking: batch client or family messages between 60-minute Focus AI blocks, or keep web.whatsapp.com permanently blocked on work laptops.
Privacy & pricing: Focus AI checks only the URL and brief page snippet during active sessions. Banking, login, email, and form inputs are skipped. Nothing is stored as browsing history or sold. Free for 3 AI focus sessions and up to 3 always-blocked sites, then $4.99/week, $14.99/month, or $79/year (save 56%).
FUTURE YOU IS WATCHINGLOCK IN

Ready to block WhatsApp Web without fighting yourself?

Start free with 3 AI focus sessions and up to 3 always-blocked sites. Add Friend/Parent Passcode Lock and unlimited protection anytime on Pro.

Add Focus AI to Chrome
Free for 3 AI focus sessions + 3 always-blocked sites · 30-second setup · No account needed

Frequently asked questions

Will blocking web.whatsapp.com stop messages on my phone?

No. Your phone stays completely independent. Blocking web.whatsapp.com only prevents the browser tab on your desktop or laptop from loading.

Does blocking WhatsApp Web stop the Windows or Mac WhatsApp desktop app?

A Chrome extension only blocks browser tabs. Close the standalone desktop app during work blocks, or uninstall it and keep WhatsApp on your phone.

Can I still open WhatsApp Web when messaging a client is my actual task?

Yes. Start a Focus AI session named 'reply to client WhatsApp messages' and web.whatsapp.com passes; during heads-down work sessions it gets blocked.

Block more distractions & guides