我在Debian Linux“Wheezy”7.1上运行了DansGuardian网页filter(2.10.1.1)和Squid网页代理(2.7.STABLE9)。
DansGuardian不会过滤通过SSL传输的Google网页search或图片search查询(HTTPS)。 Google 写道 ,我应该“将www.google.com的DNS条目configuration为nosslsearch.google.com的CNAME”。 但是我对DNS服务器软件不熟悉,不知道如何做到这一点。 [编辑:另外,即使我使用ISP的DNS服务器,也可以使用解决scheme。
如何禁用Google SSLsearch?
我做了一个谷歌search[nosslsearch dansguardian | 鱿鱼],并find了一堆解决scheme。
在DansGuardian支持列表中,Karl Henselinbuild议在DansGuardian的urlregexplist文件中添加一条规则。 这似乎是一个合理的解决scheme。 我已经改进了这个规则。 现在它似乎在许多Google域名上工作(但不是在其他域名上,例如www.google.co.uk)。 这是改进版本:
# Disable Google SSL Search. Based on a post by Karl Henselin. # See <http://serverfault.com/q/527228>. "^https://www.google.[az]{2,6}(.*)"->"https://nosslsearch.google.com\1"
此规则适用于阻止访问SSL Websearch。 它不会阻止访问< https://images.google.com >,但该网站现在只是一个查询表单。 只有<www.google.com>实际上是现在的图像效果。
这个规则也适用于你吗? 请留下评论。
我在修改www.googleapis.com的请求时遇到了一个问题,因为expression中的点意味着匹配任何angular色。 这使得YouTube不能在我的移动设备上工作。 我改变了expression式为:
"^https://www\.google\.[az]{2,6}(.*)"->"https://nosslsearch.google.com\1"
并解决了这个问题。