How to Block Websites by Keyword in Chrome

To block websites by keyword, first check what the tool matches. A URL keyword blocker restricts addresses that contain your term. A page-content filter checks words inside the page. These are different controls, and one does not prove the other works.

For example, a URL rule for shorts may match an address with that word. It cannot identify every short video whose address lacks it. This guide shows how to choose precise rules and check false matches before you depend on keyword blocking.

Key Takeaways

  • URL keyword rules inspect addresses; content filters inspect page text.
  • Use a domain rule when you want to block one whole site.
  • Short or common keywords can block useful pages.
  • Check both a matching address and an address that must remain available.

What does blocking websites by keyword mean?

The word keyword can refer to a domain, URL path, query string, or visible page text. Read the tool's description before you create the rule.

Different types of blocking rules
Rule typeWhat it checksExample use
DomainThe site's hostnameRestrict reddit.com
URL pathA section of an addressRestrict a particular section of a site
URL keywordA term inside the URLRestrict addresses that contain shorts
Page-content filterWords in the page bodyFilter pages that discuss a topic

Use a domain rule if your goal is to stop a known distraction site. A keyword rule is useful when the relevant term appears across several URLs and you accept the wider scope.

How do you set up a URL keyword blocker in Chrome?

Choose an extension that explicitly says it matches words in the URL. The Keyword Blocker store listing, for example, describes closing tabs whose addresses match blocked terms.

  1. Read the extension listing and review its permissions before you install it in desktop Chrome.
  2. Open the extension popup and enter a term in its keyword field.
  3. Add the term with Enter or the add button. Keep the regular-expression option off unless you intend to use a pattern.
  4. Test a URL that contains the term. Save any work in that tab first, because this tool describes closing matching tabs.
  5. Test a useful URL that should remain available. Remove or narrow the rule if it matches too broadly.

The listing also describes a confirmation option that locks a term. Leave the rule editable while you check it. Do not lock an experimental keyword before you know what it affects.

If your real goal is to stop one site rather than match words, use a domain blocker such as Bouncer. The Chrome website blocking guide covers that setup.

How do you avoid blocking useful pages by mistake?

Choose the narrowest rule that describes the unwanted visit. A broad text match can include words inside longer strings, search parameters, or links to unrelated services.

For X/Twitter, use x.com and twitter.com domain rules. A rule for the single letter x can match an enormous range of addresses. For YouTube, a path rule for the section you want to restrict is more precise than blocking every URL that contains the word video.

Keep a small check list for each rule:

Matching behavior depends on the tool. Do not assume that wildcards, regular expressions, or case handling use the same syntax in two different blockers.

Can a keyword blocker filter words inside a web page?

Only if the tool explicitly supports page-content inspection. A URL keyword rule cannot detect a word that appears only in the article, comments, or feed.

For example, an address such as example.com/article/123 gives no useful keyword signal about the article's topic. A page can also load new comments after it opens. Those changes matter to a content filter but may not change the URL.

Choose a content-filtering tool when page text is the target. Review what it reads and how it handles dynamic content. For a child's safety controls, use a system designed for that purpose rather than assuming a personal productivity extension is a complete content filter.

Can DNS or a hosts file block URLs by keyword?

Ordinary DNS and hosts-file controls work with hostnames, not the full path or article text. They can restrict a domain, but they cannot distinguish two pages on that domain by a word in their paths.

A router feature described as keyword filtering may have different limits. With HTTPS, the full page path and content are encrypted during transport. Check the router's own documentation rather than assuming its keyword setting can inspect every secure page.

For YouTube Shorts blocking, browser URL rules can provide a narrower scope than blocking all of youtube.com. Even then, check direct visits, feed links, and internal navigation.

How do you check a keyword rule in private browsing?

Check whether the extension runs in private browsing, then repeat your matching and allowed-URL checks in a new private window. A normal-tab result is not enough.

In Chrome, inspect the extension's details at chrome://extensions and review its incognito setting. For other desktop browsers, see the guides for Brave and Edge.

If the tool closes tabs, begin with a harmless test address and no unsaved work. Keep the initial rule list short. That makes false matches easier to find and correct.

Frequently Asked Questions

Can I block every website about a topic with one URL keyword?

No. A URL match depends on the address containing the term. Pages about the topic may use unrelated addresses, and useful pages may contain the term too.

Is a regex rule the same as a normal keyword?

No. A regular expression uses pattern syntax. Use the tool's documented syntax and check both matching and non-matching URLs before you use it.

Can I keep one page available inside a blocked site?

Some blockers support path rules or exceptions. Rule priority differs by tool, so check the blocked site and the intended exception together.

Can keyword blocking cover phone apps?

A desktop browser extension does not inspect every phone app. Use a supported device or app control for access outside the browser.

What should you do next?

Write down whether you need a domain, a URL match, or page-content filtering. Add one editable rule and check what it blocks. Expand the list only after the unwanted URL is restricted and the pages you need remain available.

Related Guides

Start with a small website blocklist.

Bouncer lets you block up to five sites for free. Pro adds schedules, daily allowances, and more focus tools.

Get Bouncer Free