[Tools] 一键让你的所有设备访问Google、youtube、facebook、twitter、battle.net

简介:

目录(?)[+]

什么是host?

Hosts是一个没有扩展名的系统文件,,记录了一些网站的IP地址和域名的对应关系.可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,如果在hosts文件中存在这个对应关系的时候,域名解析优先生效,域名解析不再请求域名服务器,系统会立即打开对应网页;否则,系统将网址提交DNS域名解析服务器进行IP地址的解析。

效果图

这里写图片描述

如何做?

①先找到你对应系统的host文件

hosts所在文件夹:

Windows 系统hosts位于 C:\Windows\System32\drivers\etc\hosts

Android安卓 须root)系统hosts位于 /system/etc/hosts

Mac(苹果电脑)系统hosts跟Linux一样位于 /etc/hosts

iPhone(iOS 需越狱)系统hosts跟Linux Mac一样位于 /etc/hosts

Linux系统hosts位于 /etc/hosts

② 做备份(万一那啥了是吧)

  Windows host 备份:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost

③ 百度(google hosts 最新)下载,因为有些ip会失效(我还没有失效过)。

我在(http://htcui.com/4938.html)下载(下载在最下面)

④直接替换系统的host文件(修改时应当注意权限问题,建议关闭360等安全软件)

Windows :

这里写图片描述

⑤刷新 DNS 缓存(其实我没刷新也可以用)

  • Windows 
    开始 -> 运行 -> 输入cmd -> 在CMD窗口输入
ipconfig /flushdns
  • Linux   
    终端输入
sudo rcnscd restart
  • Linux(systemd发行版)
sudo systemctl restart NetworkManager
  • Mac OS X 
    终端输入
sudo killall -HUP mDNSResponder


  • Android 和 IOS 
    重启

⑥ 建议使用chrome浏览器(IE也可以访问比较慢 Chrome 浏览器各版本下载),并在地址栏里输入chrome://flags/,然后查找QUIC(把chrome设置成英文的),启用该协议,同时建议启用SPDY/4,能让访问更流畅。

  其实很多网站都可以访问,你可以试试,比如:

wikipedia、ccFox.info、ProjectH、Battle.NET 、WordPress、Microsoft Live、GitHub、Amazon、Box.com、SoundCloud、inoreader、Feedly、FlipBoard、Twitter、Facebook、Flickr、imgur、DuckDuckGo、Ixquick、Google Services、Google apis、Android、Youtube、Google Drive、UpLoad、Appspot、Googl eusercontent、Gstatic、Google other、Google Play

接下来就享受谷歌吧!








相关文章
|
JavaScript PHP 开发工具
web如何将动态内容分享到Facebook,Twitter等社交平台
web如何将动态内容分享到Facebook,Twitter等社交平台
1081 0
SAP CRM和Twitter以及facebook的社交媒体集成方案
SAP CRM和Twitter以及facebook的社交媒体集成方案
103 0
SAP CRM和Twitter以及facebook的社交媒体集成方案
|
Web App开发 Windows

热门文章

最新文章