TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does Cloudflare DNS filter Google results?

4 pointsby hnthrow10282910over 2 years ago
Upon testing Cloudflare for families on 1.1.1.3, which filters explicit contents, I noticed Google results are obfuscated as well.<p>For example, typing in Porn yields no porn results.<p>How is this possible with just DNS if the site uses TLS and the connection is still secure?<p>For this to be possible, wouldn’t they need to have a valid DV cert impersonating Google?

2 comments

josephcsibleover 2 years ago
&gt; For this to be possible, wouldn’t they need to have a valid DV cert impersonating Google?<p>For it to be possible without Google&#x27;s cooperation, they would. But Google does cooperate: their Web servers listen on two sets of IP addresses. The real DNS entries for www.google.com point to the first set, and for forcesafesearch.google.com to the second set. Cloudflare is spoofing DNS responses for www.google.com to point at forcesafesearch.google.com instead. When you connect to Google via the latter, it forces SafeSearch on for all traffic over that connection. Google documents this at <a href="https:&#x2F;&#x2F;support.google.com&#x2F;websearch&#x2F;answer&#x2F;186669?hl=en" rel="nofollow">https:&#x2F;&#x2F;support.google.com&#x2F;websearch&#x2F;answer&#x2F;186669?hl=en</a>
评论 #33736705 未加载
ipythonover 2 years ago
Most likely it uses googles safe search feature. I force it at home using Pi-hole. See <a href="https:&#x2F;&#x2F;support.google.com&#x2F;websearch&#x2F;answer&#x2F;186669?hl=en" rel="nofollow">https:&#x2F;&#x2F;support.google.com&#x2F;websearch&#x2F;answer&#x2F;186669?hl=en</a>