Excluding Specific Sites from Search Results on Google and DuckDuckGo

This article was automatically translated from Japanese by AI. Read the original Japanese version →

Table of Contents

I normally use DuckDuckGo as my search engine. Not Google—DuckDuckGo. There are a bunch of reasons, mainly that Google annoyed me by pushing sites from companies that pay Google to the top, and that DuckDuckGo's icon is cute.

By the way, search engines always come with a problem like this:

So let's block the annoying sites.

The Easy Way

Since most readers of this blog probably use Google, I'll start with how to do it on Google.

How to Exclude Specific Words or Phrases in Google Search | gori.me今回紹介するのはGoogle検索で特定のワードやフレーズを除外して調べる方法。検索結果が多数表示されるであろう中でも、特定のワードやフレーズを含む検索結果は排除することができる、便利なTipsだ!ゴリミー · gori.me

You simply use a - (hyphen) in the search box to specify excluded terms. Even better, if you specify a site's domain in the format -site:hogehoge.com, you can exclude that specific site. This works the exact same way in DuckDuckGo too.

The Permanent Way

That said, typing that string every single time is a pain. So let's use Chrome's Manage search engines feature.

Set your default search engine - Computer - Google Chrome Helpアドレスバー(オムニボックス)はウェブの検索に使用できます。一部の国では、Google 検索が Chrome の既定の検索エンジンになっています。その他の国では、既定の検索エンジンを選択するよう求められる場合があります。既定の検索エンジンは…support.google.com

This feature is simple: you just embed your search query into the search URL. For example, I set my URL like this to exclude various sites from my search results:

https://duckduckgo.com/?q=%s+-site:gnavi.co.jp+-site:tabelog.com+-site:www.hotpepper.jp+-site:qiita.com+-site:cookpad.com+-site:recipe.rakuten.co.jp (%s is the search query)

You can configure this the exact same way for Google. One thing to watch out for is that duplicate keywords (the text shortcut used for the search engine) aren't allowed. Since google.com and duckduckgo.com are already taken, you'll need to work around it by leaving off the .com or something similar.

When I looked it up, there seem to be Chrome extensions that block specific sites by modifying the search results page, but first of all they don't support DuckDuckGo. Plus, that type of Chrome extension can break whenever the target site changes its layout, so if there's a built-in workaround, it's safer not to rely on extensions.

That's all.