共计 1166 个字符,预计需要花费 3 分钟才能阅读完成。
提醒:本文最后更新于2018-02-28 09:29,文中所关联的信息可能已发生改变,请知悉!
禁止 google 国别识别跳转
在国内访问 google,会自动跳转到 google.hk,这是因为谷歌有自动根据 IP 判断的能力,即在哪个国家打开谷歌就会自动显示那个国家的文字。
其实也是可以禁止它的这种跳转的。方法为加入ncr (No Country Redirect)后缀访问:
又有人问了,怎样访问到具体语言的版本呢?你只需要设置一下即可:
设置地址:https://www.google.com/preferences?hl=en#languages
国内怎样访问 google?
访问不到 google,是因为它的域名的正常解析被中断了。
那么,如果有一台服务器我们可以正常访问,而从那台服务器上又可以访问到 google,则经过这台服务器,我们就也可以访问到了。
这就是 VPN 最基本的原理。除了 VPN 外,通过将域名解析到可访问的 IP 上,也可以实现网站的访问。
修改 host 的方法
hosts所在文件夹
Windows 系统 hosts 位于 C:\Windows\System32\drivers\etc\hosts
Linux系统 hosts 位于 /etc/hosts
Android(安卓)系统 hosts 位于 /system/etc/hosts
Mac(苹果电脑)系统 hosts 跟Linux一样位于 /etc/hosts
iPhone(iOS)系统 hosts 跟Linux、Mac 一样位于 /etc/hosts
打开 hosts
文件,在尾部添加下面列出的 google-hosts
列表,保存即可(需要管理员/root 权限)。
注意:所有的网站访问,都应使用 https://
,如:https://www.google.com
修改 hosts 后生效的方法
- Windows
开始 -> 运行 -> 输入cmd -> 在CMD窗口输入
ipconfig /flushdns
- Linux
终端输入
sudo rcnscd restart
对于 systemd 发行版,请使用命令
sudo systemctl restart NetworkManager
- Mac OS X终端输入
sudo killall -HUP mDNSResponder
- Android
开启飞行模式 -> 关闭飞行模式
google hosts 列表
以下为 google-host
列表:
https://github.com/Googlehosts/hosts
最新更新: https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts
参考
https://laod.org/hosts/2016-google-hosts.html
https://github.com/racaljk/hosts
https://github.com/Googlehosts/hosts