Olungu
How to Block Specific Websites on Chrome: Advanced Techniques to Stay Focused
Chrome has no built-in website blocker. Here's every method that actually works—extensions, hosts file, DNS filtering, and context-aware blocking explained.
Founder of Olungu and a software engineer with over 10 years of experience building technology products. He writes about productivity, focus, behavioral psychology, and evidence-based strategies for achieving goals and doing deep work.
Chrome has no native website-blocking feature for personal use. To block distracting sites, you need to set something up yourself—whether that's a browser extension, a system-level hosts file edit, or a smarter context-aware tool that evaluates what a page is actually about before deciding to block it.
Chrome has no native website blocker for personal use; every solution requires external setup via extensions, system files, or DNS.
Simple domain-based blocklists fail knowledge workers who legitimately need sites like YouTube, Reddit, or Google for their actual work.
The hosts file blocks sites system-wide across all browsers without any extension, but offers no scheduling and doesn't sync to mobile.
DNS-level filtering through services like NextDNS can block sites across every device on a network, including phones.
Context-aware blocking evaluates specific page content against your current task, allowing useful visits while blocking distracting ones on the same domain.
Why Chrome Won't Do This For You
Chrome's lack of a built-in blocker isn't an oversight. As confirmed in Google's own support forums, there's no toggle in settings or your Google account that blocks websites for personal focus purposes. Chrome Enterprise lets IT administrators manage site access on managed devices, but personal accounts are left to their own devices.
The method you choose determines how easy it is to undo when willpower slips. A block removable in three clicks isn't really a block—it's a speed bump. That single variable—bypass friction—matters more than any feature list.
Method 1: Browser Extensions
Installing a Chrome extension is the two-minute solution. Search the Chrome Web Store, add a blocker, enter the sites you want gone, and Chrome redirects you whenever you try to visit them.
Popular options include StayFocusd, LeechBlock, and BlockSite. Most let you set time limits per site, schedule blocking windows, or create different lists for different contexts.
Extensions are trivially easy to circumvent, though. Open an incognito window and most blockers disappear entirely unless you've manually enabled them for private browsing—go to chrome://extensions → Details → Allow in Incognito. Or just disable the extension. Three clicks and you're back on Reddit.
For casual use or a gentle nudge to stay on task, extensions work fine. If you've tried one and found yourself disabling it mid-afternoon anyway, the bypass friction is the real problem. Fix it immediately after install: enable the extension in incognito, and if the extension supports a locked mode, turn that on too. That one step removes the two most common self-workarounds before they even become habits.
Method 2: Edit Your Hosts File
The hosts file is a plain text file that maps domain names to IP addresses at the OS level. Point a site to 127.0.0.1 and you blackhole it—Chrome, Firefox, Edge, every browser on that machine, all blocked simultaneously with zero extensions involved.
On Windows
- Search for Notepad, right-click it, choose Run as administrator
- Open:
C:\Windows\System32\drivers\etc\hosts - Add at the bottom:
127.0.0.1 reddit.com
127.0.0.1 www.reddit.com- Save the file
- Flush DNS: open Command Prompt and run
ipconfig /flushdns
On Mac
- Open Terminal
- Run:
sudo nano /etc/hosts - Add your entries:
127.0.0.1 reddit.com
127.0.0.1 www.reddit.com- Press
Control + X, thenY, then Enter to save - Flush DNS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
No software to install, no extension to disable—the block persists even if you install a new browser tomorrow. The real downsides: it's tied to one machine, your phone is unaffected, and there's no scheduling. Always-on until you manually remove the entry. A VPN can route around it too.
Method 3: DNS-Level Blocking
DNS filtering handles all your devices at once—phone, tablet, laptop—by intercepting domain lookups before a browser ever touches them. Services like NextDNS let you build a custom blocklist, then configure your router or individual device to use their DNS servers.
On Android, the Private DNS setting (Settings → Network & Internet → Advanced → Private DNS) can point directly to your NextDNS hostname. No browser extension required, no per-device setup beyond that one field.
The tradeoff is setup time. Getting a router configured takes longer than a two-minute extension install, and switching to mobile data bypasses any router-level block entirely—so it's not a complete solution for someone with a smartphone habit.
Method 4: Parental Controls and Family Tools
Blocking sites for a child is a different problem with different tooling:
- Google Family Link — links a child's Google account to parental supervision, blocking specific URLs in Chrome on Android and desktop
- iOS Screen Time — covers Chrome and every other browser on iPhone/iPad via Content & Privacy Restrictions → Web Content → Never Allow
Neither is designed for adult self-blocking. Screen Time passcodes are easy to reset if you know your own Apple ID, which rather defeats the purpose.
The Problem None of These Methods Solve
All four methods block by domain. Reddit gets blocked. YouTube gets blocked. That creates a genuine problem for anyone whose productive browsing looks a lot like their distracted browsing.
You might need YouTube to watch a tutorial on a library you're learning. Reddit to troubleshoot a bug. Google News to research an article. A hard domain block has no idea whether you're watching a Python tutorial or a three-hour rabbit hole of cooking videos—it either blocks the whole domain or leaves it wide open.
The failure mode of simple blocklists isn't that they block too little. They force an all-or-nothing choice on sites that are genuinely mixed—useful sometimes, distracting others. Anyone who's tried blocking YouTube only to find they need YouTube two hours later knows exactly how this plays out.
This is the gap that context-aware blocking addresses.
Method 5: Context-Aware Blocking with Olungu
Olungu evaluates what the page is actually about against what you're currently trying to work on—not just which domain you're visiting.
When you navigate somewhere with Focus Guard enabled, Olungu runs a fast deterministic check against your domain lists first. Hard Block List hit? Stopped instantly, no AI involved. Allow List match? Passes through. For the genuinely ambiguous middle ground—YouTube, Reddit, Google Search, any domain whose value depends entirely on the specific page—Olungu calls AI to classify the URL.
The AI receives your page URL, title, and description, plus your Guard Profile: a plain-text description of your current task and standing distraction rules. A profile might look like: "Working on a machine learning project. Block: social feeds, news, entertainment. Allow: documentation, GitHub, research papers." The AI returns a verdict—relevant, irrelevant, or gateway—with a confidence score.
A YouTube tutorial on PyTorch stays open. A YouTube video of funny animal compilations gets blocked. Same domain, completely different outcome, determined by task context rather than a static list.
Olungu's block screen explains the verdict and lets you dispute directly from the page. If your reasoning is accepted, it suggests a Guard Profile rule update so the same page is handled correctly next time—rather than just overriding once and forgetting.
That last point is worth pausing on. Most blockers treat a false positive as a one-off inconvenience. Olungu's Dispute & Unblock flow treats it as signal: re-evaluate, update the profile, don't repeat the mistake. Over time the system calibrates to your actual work rather than staying frozen at your initial setup.
That said, context-aware blocking isn't flawless out of the box. The AI's accuracy depends directly on how clearly you write your Guard Profile—a vague task description produces vague verdicts. Olungu offers three Block Threshold settings (Conservative at 82% confidence, Medium-High at 70%, Aggressive at 55%) so you can tune how much uncertainty tips into a block. New users will likely need a few disputes in the first day or two before the profile settles.
Features That Make the Difference
Smart Domain Lists give you four layers of control working in strict priority order:
| List | Behavior |
|---|---|
| **Block List** | Always blocked instantly, no AI involved. Supports plain domains, wildcards, URL prefixes, and regex |
| **Allow List** | Always allowed instantly |
| **Gateway List** | AI evaluates based on the specific URL (YouTube homepage: allowed; `youtube.com/watch?v=...`: AI decides) |
| **Sensitive List** | Always allowed, never sent to AI—for banking, healthcare portals, private accounts |
Guard Learning means the extension gets smarter without you touching anything. When the AI repeatedly classifies a domain the same way within a rolling 7-day window, it auto-promotes that domain to a hard rule. Future visits get decided instantly without another AI call. You can review and remove any of these AI-added rules from the dashboard.
The Guard Off Challenge addresses something the other methods can't. Before Focus Guard disables, you can require yourself to type a custom sentence or watch a timed YouTube clip. The decision to quit becomes deliberate rather than a five-second impulse—and that friction is often enough to stop the impulse entirely.
Rabbithole Watch adds per-site time budgets for domains that are technically relevant but easy to overuse. Set a 20-minute daily budget on Hacker News and you get progressive warnings at 50%, 75%, 90%, and 100% of that limit—friction before you've lost an hour, not after.
Olungu supports three AI modes: Managed AI (no setup required, quota tracked per account), BYOK (bring your own Anthropic, OpenAI, or Gemini key), and Local Model (runs entirely on-device via Ollama for full privacy). Domain lists, Guard Profile, focus history, and the AI classification cache all sync across every browser where you're signed in.
For anyone who finds that domain-only blocklists break their workflow because they actually need the sites they're trying to block—context-aware blocking is a different category of tool entirely. See also the comparison between Olungu and Freedom if you're evaluating dedicated focus apps, or the broader roundup of Freedom alternatives for more context.
Choosing the Right Method
There's a mismatch that most people overlook: technical strictness and practical effectiveness aren't the same thing. The hosts file is harder to bypass than a Chrome extension, but if your distraction pattern runs through YouTube and Reddit—sites you also genuinely need—then a stricter domain block just makes your workflow worse. You end up disabling it more, not less.
The honest framing is: match the tool to how your distraction actually behaves, not to how strict you want to feel.
| Situation | Best approach |
|---|---|
| Quick nudge, low stakes | Chrome extension (StayFocusd, LeechBlock) |
| Desktop-only, cross-browser blocking | Hosts file edit |
| Block across all home devices | DNS filtering (NextDNS, AdGuard DNS) |
| Parental controls for a child | Google Family Link or iOS Screen Time |
| You disable every blocker you install | Extension with locked/strict mode |
| Same site needs to be blocked sometimes, allowed other times | Olungu (context-aware blocking) |
| Privacy-sensitive pages that shouldn't be evaluated | Olungu Sensitive List |
If you mindlessly open Twitter and never actually need it for work, a simple domain block does the job cleanly. But if the sites distracting you are the same ones you open for legitimate research an hour later, domain blocking will keep failing you—not because it's weak, but because it's the wrong model. A good focus system can also pair with digital nudging strategies that reduce the urge to browse before any blocking even kicks in.
Ready to try context-aware blocking instead of another static blocklist? Install Olungu free from the Chrome Web Store—the free tier includes core focus features so you can test it against your actual workflow before committing to anything.
Frequently asked questions
No. Chrome has no native feature for blocking websites on personal accounts. As confirmed in Google's own support documentation, you need a third-party extension, a system-level solution like the hosts file, or a DNS-level filter to block sites in Chrome.
Edit your operating system's hosts file to redirect the domain to `127.0.0.1`. This blocks the site in all browsers on that computer without any installed software. On Windows, open Notepad as administrator and edit `C:\Windows\System32\drivers\etc\hosts`. On Mac, use `sudo nano /etc/hosts` in Terminal. Flush your DNS cache after saving.
Chrome extensions don't run in incognito by default. To enable one: go to `chrome://extensions`, find your extension, click Details, and turn on **Allow in Incognito**. Hosts file and DNS-level blocks apply in incognito automatically since they operate below the browser layer.
Because the same domain can be productive or distracting depending on the specific page. A hard block on YouTube prevents you from watching relevant tutorials; allowing YouTube leaves all video rabbit holes open. Context-aware tools like Olungu evaluate the actual page URL and content against your current task before deciding, so a research video can stay open while unrelated content gets blocked.
Yes, with the right tool. Olungu's Focus Breaks feature lets you take a timed break where blocking temporarily suspends and then re-engages automatically—without touching your main Guard toggle. Most simple extensions either block always-on or require you to disable them entirely.
DNS-level or router-level blocking is the most resistant to casual circumvention since it operates outside the browser entirely. Within browser tools, extensions with strict or locked modes add meaningful friction. For self-blocking with nuance, Olungu's Guard Off Challenge requires you to complete a deliberate task before disabling focus protection—making impulsive disabling significantly harder.