Blog
Can ChatGPT block distracting websites while you work?
ChatGPT cannot block sites on its own — but connected via MCP to LockIn, it can trigger system-level enforcement, manage sessions, and grant accountable temporary unblocks.

You ask ChatGPT to block YouTube for the next hour. It gives you excellent advice about focus techniques, Pomodoro timers, and maybe a pep talk. YouTube loads just fine.
That is the gap between advice and enforcement. ChatGPT is very good at the first. Without a connected tool with system access, it has no mechanism for the second.
Why "just ask ChatGPT to block a site" does not work
ChatGPT runs in a chat window. By default it cannot:
- Edit your operating system's hosts file
- Close a browser tab
- Prevent a domain from resolving
- Intercept DNS requests on your machine
It can suggest you install a blocker. It can remind you of your goals. It can outline a schedule. None of that is enforcement — and when the task gets hard, advice loses to a three-second navigation to Reddit.
The same limitation applies to Claude, Perplexity, and Gemini. AI assistants are control layers for conversation, not operating systems. Blocking requires something on your machine that the assistant can instruct.
For the broader pattern of turning assistants into enforcers, see AI assistant as system-level productivity enforcer.
What changes with an MCP connection
MCP — Model Context Protocol — lets AI assistants call tools hosted by external services. Instead of only generating text, the assistant can invoke real functions:
- Start a focus session
- Check the active task
- Trigger system-level domain blocking
- Grant a time-boxed temporary unblock
At that point, telling ChatGPT what you are working on is not just conversation. It is the trigger for an enforcement action on your machine.
This is fundamentally different from "focus tips." Tips have no mechanism. MCP-connected tools do. Compare approaches in AI productivity coach vs focus enforcer.
How this works with LockIn MCP
LockIn MCP is built to connect with ChatGPT — along with Claude, Perplexity, Gemini, and Poke — through MCP. Once connected, the workflow looks like this:
- You state your task. "I'm writing the product spec for the next two hours. Block my usual distractions."
- ChatGPT calls LockIn's MCP tools to start a focus session with your stated duration.
- LockIn edits your system hosts file, redirecting distracting domains (commonly Reddit, YouTube, X — customizable) to a dead address. This blocks across every browser on your machine, not just one.
- The Chrome extension adds a second layer, checking whether the page you are on relates to your stated task.
- If you need an exception, you ask ChatGPT for a temporary unblock. It is logged, time-boxed, and closes automatically when the timer ends.
The background service keeps blocking and unblock timers running even if you close the ChatGPT window.
Full architecture: what LockIn MCP does and how it works.
Setup: connect ChatGPT to LockIn MCP
Step 1: Install LockIn locally
Open a terminal and run:
npx -y lockin-mcp installThis sets up hosts-file blocking, starts the local MCP server, and saves your server URL and API key. Works on macOS, Linux, and Windows.
Detailed walkthrough: how to install LockIn MCP.
Step 2: Enable the background service
Follow the installer prompts. Without the background service, blocks may not persist across app restarts or reboots.
Step 3: Add LockIn as a ChatGPT connector
- Open ChatGPT's connector or MCP settings
- Add a new server with the URL from your local install
- Paste the API key exactly
- Save and restart ChatGPT if prompted
Per-assistant details: docs/connectors. For other assistants, see best AI focus assistants that work with ChatGPT.
Step 4: Start your first session
In a new ChatGPT conversation:
"Start a focus session. I'm working on the Q3 report for 90 minutes. Block Reddit, YouTube, and X."
Confirm blocking by trying to load a blocked domain in your browser.
ChatGPT blocking vs other approaches
| Approach | Enforcement | ChatGPT role |
|---|---|---|
| Ask ChatGPT for tips | None | Advisor only |
| Browser extension | Single-browser | Unconnected |
| Freedom / Cold Turkey | Desktop app | Unconnected |
| LockIn MCP via MCP | System-level + task-aware | Active enforcer |
ChatGPT with LockIn is the only row where your assistant both understands your task and can act on it — without you opening a separate blocker app.
For system-level context, see best system-level website blockers in 2026. For accountable unblocks, see AI productivity distraction blocking.
What ChatGPT still cannot do alone
Even with LockIn connected, ChatGPT does not:
- Block sites on your phone (LockIn is desktop-focused)
- Override Frozen-mode Cold Turkey on the same machine without conflicts
- Guarantee blocking if you disable the background service or bypass hosts-file entries via VPN/DoH
Determined bypass on your own device is always possible. The goal is friction at the impulse moment — and ChatGPT plus LockIn adds conversational friction that a toolbar toggle does not.
The cost of an unblocked "quick check"
Why enforcement matters beyond willpower: Gloria Mark's interruption research at UC Irvine — cited in the 23-minute rule — suggests regaining deep focus after an unplanned switch can take more than 20 minutes.
The American Psychological Association's research on multitasking switching costs reports that knowledge workers pay a measurable mental price on every context jump — not just the time on the distracting site, but the recovery when returning. A 2016 UC Irvine CHI study found median online screen focus lasted just 40 seconds before switching tasks.
ChatGPT telling you to stay focused does not prevent that switch. ChatGPT triggering a hosts-file block does.
Example prompts that trigger real enforcement
Once LockIn is connected, these prompts do more than generate advice — they call MCP tools:
- "Start a 90-minute focus session for the investor deck. Block Reddit, YouTube, and Hacker News."
- "What is my active focus task right now?"
- "I need 15 minutes on YouTube for a React tutorial — grant a temporary unblock and log it."
- "End my focus session."
If ChatGPT responds with suggestions instead of confirming a session started, the MCP connection is not active. Check docs/connectors and verify the background service is running.
Frequently asked questions
Does ChatGPT need a plugin to block websites?
It needs an MCP connection to a tool with system access — like LockIn MCP. ChatGPT has no native website-blocking capability.
Is this different from asking ChatGPT for focus tips?
Yes. Tips are advice with no enforcement mechanism. An MCP-connected tool gives ChatGPT the ability to trigger a real, system-level block.
What happens if I close the ChatGPT window mid-session?
With the background service enabled, LockIn's blocking and active unblock timers keep running independently of the chat window.
Does this work with Claude instead of ChatGPT?
Yes. LockIn MCP supports Claude, ChatGPT, Perplexity, Gemini, and Poke. The MCP pattern is the same; only connector setup differs.
How much does LockIn MCP cost?
3-day free trial, then $2.99/month or a one-time $59.99 lifetime option. /get-started
Can ChatGPT see my browsing history?
LockIn logs distraction attempts during sessions — when you tried to reach a blocked domain — not your full browsing history. ChatGPT sees what you tell it in conversation plus MCP tool responses during active sessions.
