How to Block Websites on Chrome

Whether you want to block a single website on Chrome or build a whole blocklist, this guide covers every practical method — by domain, URL pattern, keyword, category, schedule and Pomodoro focus session. Plus the old-school hosts-file trick and why it doesn't work for most people in 2026.

Quick answer: how to block a website on Chrome takes about 30 seconds — install the extension, click its icon on the page you want to block, press the green Block button. The full guide below breaks down every variation, including how to block by URL pattern, schedule, or category.

Last updated: May 2026 · Read time: 7 min · Tested on: Chrome 130+, Edge, Brave, Opera

Why block websites on Chrome

The average person spends over two hours a day on social media, and Chrome is where most of it happens. Blocking distracting sites at the browser level is the fastest, lowest-friction way to reclaim that time — no router config, no admin rights, no separate device.

People usually block websites on Chrome for one of three reasons:

  • Productivity — knock out deep work without YouTube, Reddit or X breaking your flow.
  • Parental control — keep kids off categories like games, social media or adult content during school hours.
  • Self-discipline — stop yourself from doom-scrolling at 2 AM, even when willpower runs out.

The methods below cover all three. The first one — installing a Chrome website blocker extension — is the only one most people will ever need.

Method 1: Use a Chrome website blocker extension

This is the recommended method for 99% of people. A good extension installs in 30 seconds, blocks any site in one click, and gives you everything you'd otherwise have to wire up by hand: schedules, categories, password protection, statistics.

We're going to use Website Blocker — an open-source-style extension that runs entirely in your browser, with no account and no data collection. Here's how to block your first website:

How to block a website on Chrome in 30 seconds

If you only need to block a single site right now — Facebook, YouTube, Reddit, your news site of choice — here is the fastest path. Three steps, no settings menus, no admin rights, no account.

1

Install the extension

Open the Chrome Web Store and click Add to Chrome. After installation, click the puzzle-piece icon in your toolbar and pin the lock icon so it's always one click away.

2

Open the website you want to block

Navigate to the page that's been eating your time — say, facebook.com, youtube.com, or reddit.com. Then click the Website Blocker icon in the toolbar.

3

Press the green Block button

You'll see the current domain at the top of the popup with a big green Block this site button. Press it. The domain is added to your blocklist instantly and the page becomes inaccessible in this browser. Open another tab to confirm — you'll see a "This site is blocked" page instead.

That's it. To unblock later, click the icon and toggle the entry off. To block more sites, repeat the process on each one — or paste a list of domains into Settings if you want to do it in bulk.

Tip: after installing, pin the extension. An unpinned extension takes two clicks to reach (puzzle-piece menu → click). A pinned one takes one click. Over a year of use, that adds up.

Try Website Blocker for Chrome

No signup, no account. Works in 30 seconds.

Add to Chrome

Method 2: Block specific URLs (YouTube Shorts, Reddit /r/all)

Sometimes you don't want to nuke an entire site — you want to keep the useful parts and kill the distracting ones. YouTube is the obvious example: regular videos are fine, but YouTube Shorts is engineered to be a TikTok-grade time sink.

Instead of blocking the whole domain, block by URL pattern with a wildcard:

  • youtube.com/shorts/* — blocks Shorts but lets you watch normal videos
  • reddit.com/r/all — blocks the doomscroll feed but keeps niche subreddits
  • twitter.com/explore — blocks the algorithmic feed
  • news.ycombinator.com/newest — blocks "fresh" submissions, keeps the front page

In Website Blocker, open Settings → Blocklist → Add, paste the URL pattern, and save. The extension will redirect any tab that matches the pattern, leaving the rest of the domain untouched.

Method 3: Block by keyword

This one's underrated. Type casino once and every gambling site in the world goes dark — you don't need to know the names. Same trick works for poker, shorts, onlyfans, or any other word you don't want to see in a URL again.

How it works: Website Blocker checks each navigation against your keyword list. If the URL or page title contains the keyword, the page is redirected to the "blocked" placeholder.

Use cases:

  • Adult content — block any URL containing common adult keywords across all sites at once.
  • Gambling — keywords like casino, bet, poker.
  • Vertical videoshorts, reels, tiktok.
  • News topics — block specific topics that send you doomscrolling.

Method 4: Block by category

Adding sites one by one gets tedious when you want to block, say, all social media. Website Blocker ships with five curated category packs covering 60+ sites between them:

  • Social Media — Facebook, Instagram, TikTok, X, LinkedIn, Pinterest, Snapchat, Threads, Mastodon, Bluesky and others.
  • Games — 14 popular gaming domains, from Steam to browser-game portals.
  • News — major news sites where you tend to lose 30 minutes "just checking the headlines."
  • Video — YouTube, Twitch, Netflix, Hulu, Disney+ and other streaming platforms.
  • Shopping — Amazon, eBay, AliExpress, marketplace impulse-buy hubs.

Each category is one toggle. You can also create custom categories — for example, a "Newsletter dashboards" pack so you only check Substack, ConvertKit and Beehiiv during a specific window.

Method 5: Block websites only during work hours

Blocking by schedule is the difference between a tool and a habit. You don't need willpower if the websites are physically unreachable from 9 AM to 6 PM.

In Website Blocker, open Settings → Schedule. You can:

  • Pick specific days of the week (Mon-Fri vs. weekend).
  • Add multiple time intervals per day (e.g. 9-12 deep work, 14-18 deep work, 22-23 wind-down).
  • Use overnight ranges that wrap past midnight (e.g. 23:00 → 07:00 to enforce sleep).
  • Pick from quick presets: Workday 9-18, Evening 18-23, Always.

Schedules apply to the whole blocklist — all your blocked sites become accessible outside the scheduled window, and locked again inside it. If you want some sites to be permanently blocked regardless of schedule, mark them as "Always blocked" in the entry settings.

Method 6: Block sites during Pomodoro focus sessions

Some sites you don't want gone all day — only during the 25 minutes you've committed to deep work. Twitter is fine at lunch; Twitter at minute 14 of a Pomodoro is a disaster.

Website Blocker has a separate Focus Mode blocklist that activates only during a Pomodoro session. The flow:

  1. Open the popup, switch to Focus Mode.
  2. Add the sites you want blocked only during focus (your "willpower assassin" list).
  3. Pick a preset — Pomodoro 25/5, Short 15/3, Long 50/10 — or set custom intervals.
  4. Hit Start. Your focus list is now blocked. Your normal blocklist is unchanged.
  5. When the focus phase ends, the focus list automatically unblocks. Take your break.

This separation matters: most people don't want to ban Reddit forever, they want to ban Reddit during the next 25 minutes. Focus Mode does that without touching your regular blocklist.

Method 7: Edit the hosts file (advanced, not recommended)

This is the old-school method. The hosts file lives at /etc/hosts on macOS/Linux and C:\Windows\System32\drivers\etc\hosts on Windows. You add a line like:

127.0.0.1   facebook.com
127.0.0.1   www.facebook.com

Save the file (with admin/sudo rights), flush DNS, and Facebook now resolves to your local machine — i.e., nothing.

Why this is a bad idea in 2026 for most people:
  • Requires admin rights on your machine.
  • Affects every browser and every app, not just Chrome.
  • Can't be scheduled. It's on or off, all the time.
  • Easy to bypass — anyone who knows what a hosts file is can edit it back in 5 seconds.
  • Doesn't handle subdomains, URL patterns, or keywords.
  • Modern sites with HSTS sometimes refuse to resolve to 127.0.0.1, breaking the trick.

In short: hosts file is a hammer when what you need is a scalpel. Use it only if you have a specific reason to block at the OS level (e.g. a shared family computer where you want every browser blocked at once).

Comparison: extension vs hosts file vs router DNS

Extension Hosts file Router DNS
Setup time30 sec5-10 min15-30 min
Admin rights neededNoYesYes
Block by URL patternYesNoNo
Block by keywordYesNoNo
ScheduleYesNoLimited
Pomodoro focus modeYesNoNo
Password protectionYesNoRouter login
ReversibleOne clickEdit fileRouter config
Works on phoneBrowser onlyNoYes

For most use cases, the extension wins on every dimension that matters for blocking websites on Chrome. Router DNS is interesting if you want to block at the network level for an entire household, but it's overkill if you just want to stop yourself from opening Twitter at work.

How to bypass-proof your website blocker

If you're blocking websites for self-discipline, the weakest link is you. At 11 PM, present-you will hate past-you for setting up the block — and present-you can simply disable the extension. The fix is password protection.

In Website Blocker, open Settings → Password Protection and enable it. You'll set:

  • An 8+ character password required to add, remove or disable any blocked site.
  • A one-time recovery code, shown once. Save it in a password manager.

Now you can't quickly disable the blocklist in a moment of weakness. Even uninstalling the extension takes more clicks than the willpower drop usually allows. For parental control use cases, the password is your enforcement mechanism — kids who don't know the password can't unblock from the extension UI without uninstalling it.

What if I forget the password? Use the recovery code. Without password and without recovery code, there is no backdoor. That's not a bug — it's the entire point of bypass-proofing.

FAQ — Blocking websites on Chrome

How do I block a website on Chrome?
To block a website on Chrome, install the Website Blocker extension, open the page you want to block, click the extension icon in the toolbar, and press Block this site. The whole process takes about 30 seconds and works in Chrome, Edge, Brave and Opera.
What is the easiest way to block a website on Chrome?
Install a website blocker extension like Website Blocker, click its icon on the page you want to block, and press the green Block button. It takes under 30 seconds and works on any Chromium-based browser.
Can I block a website on Chrome without an extension?
Yes — you can edit your hosts file to redirect a domain to 127.0.0.1, but it requires admin rights, only works on the entire system, can't be scheduled, and is trivial to bypass. An extension is faster, safer and reversible.
How do I block YouTube Shorts on Chrome but keep regular videos?
Add a URL pattern like youtube.com/shorts/* to your blocklist instead of blocking the whole domain. The same trick works for reddit.com/r/all and twitter.com/explore.
How can I block social media on Chrome during work hours?
Use the Schedule feature in Website Blocker. Add Facebook, Instagram, X and TikTok to the Social Media category, then set a workday schedule (for example, 9 AM to 6 PM, Monday to Friday).
How do I stop myself from disabling the website blocker?
Enable password protection in Website Blocker. Set an 8-character password and save the recovery code somewhere safe. After that, adding, removing or disabling blocks requires the password.
Does the Chrome website blocker work on Mac, Windows and Linux?
Yes. The extension runs inside Chrome, so it works on any platform that runs Chrome — macOS, Windows, Linux and ChromeOS. It also works in Edge, Brave and Opera since they share the Chromium engine.
Will blocking websites slow down my browser?
No. Website Blocker uses Chrome's native webNavigation API, so there is no per-page script overhead. The extension is effectively invisible until you actually try to open a blocked site.
Where are my blocked websites stored?
Locally in chrome.storage. Nothing is uploaded to a server. If you want your blocklist to sync across machines, sign into Chrome with your Google account — Chrome's built-in sync will carry the settings over.

Block your first website in 30 seconds

No signup. Works in Chrome, Edge, Brave and Opera.

Add to Chrome