Code Monkey home page Code Monkey logo

google-hosts's Introduction

google-hosts

What | How | Must | Contributing | License | Donate

Notice: 每天2:00-3:00点自动更新

What

此项目能有助于你访问Google服务

How

使用当前的hosts

程序不会覆盖你原有的hosts
首次更新时会向hosts文件写入一行#TX-HOSTS, 请不要删除它

Windows 用户

  1. 请先退出所有杀毒软件
  2. Windows XP 以上请使用管理员身份运行或赋予hosts文件可写权限
  3. 使用及更新: fuckGFW-64.exe(64位) / fuckGFW-32.exe(32位)双击运行

*nix/OSX 用户

  1. 打开终端
  2. 使用及更新: $ curl -s http://freedom.txthinking.com/fuckGFW.py | sudo python
  3. 输入当前用户密码并回车

自己查找hosts

find.sh查询某段IP详细信息,可接受一个或多个参数(这个可检测IP是否被封锁, 443端口是否被封锁)

$ cd google-hosts/scripts

# 查询 192.168.1.x
$ ./find.sh 192.168.1

# 查询 192.168.x.x
$ ./find.sh 192.168

# 查询 192.168.x.x, 192.169.x.x, 192.170.1.x
$ ./find.sh 192.168 192.169 192.170.1

filter.sh从output目录(由find.sh生成)过滤域名

$ cd google-hosts/scripts

# 过滤可用于*.google.com的域名
$ ./filter.sh *.google.com

# 过滤可用于mail.google.com的域名
$ ./filter.sh mail.google.com

use.sh使用过滤出的某个IP并更新hosts.all文件

$ cd google-hosts/scripts

# 使用可用于*.google.com 的IP 192.168.1.1
$ ./use.sh *.google.com 192.168.1.1

# 使用可用于mail.google.com 的IP 192.168.1.1
$ ./use.sh mail.google.com 192.168.1.1

select.sh结合了filter.sh, use.sh,自动选择最佳IP写入hosts.all文件, 并做了些特殊域名处理

$ cd google-hosts/scripts
$ ./select.sh

apply.sh使用hosts.all文件更新../hosts文件

$ cd google-hosts/scripts
$ ./apply.sh

auto.sh结合了find.sh, select.sh, apply.sh自动查询后选择最佳IP写入../hosts文件

$ cd google-hosts/scripts
$ ./auto.sh

输出的四个字段含义

IP LOSS TIME SSL
此IP 丢包率 PING值 可用ssl域名

Must

  • 请使用国际版google. 防止google本地化重定向: 访问一下https://www.google.com/ncr
  • 请使用https替代http访问.

Contributing

  • vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8
  • Please create your pull request on develop branch

License

Licensed under The MIT License

Donate

google-hosts's People

Contributors

txthinking avatar ledu avatar walkthetalk avatar fcce avatar lyy avatar myisjon avatar

Watchers

James Cloos avatar DS avatar 时易创享 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.