Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/txthinking/google-hosts
Google hosts generator
https://github.com/txthinking/google-hosts
generator google host hosts hostsfile
Last synced: 5 days ago
JSON representation
Google hosts generator
- Host: GitHub
- URL: https://github.com/txthinking/google-hosts
- Owner: txthinking
- License: mit
- Created: 2013-12-06T02:03:59.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T12:59:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T15:35:10.963Z (about 2 months ago)
- Topics: generator, google, host, hosts, hostsfile
- Language: Shell
- Homepage: https://www.txthinking.com
- Size: 28.3 MB
- Stars: 3,326
- Watchers: 456
- Forks: 1,248
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# google-hosts
[**What**](#what) \| [**How**](#how) \| [**Must**](#must) \| [**Contributing**](#contributing) \| [**License**](#license)
[🗣 News](https://t.me/s/txthinking_news)
[🩸 Youtube](https://www.youtube.com/txthinking)❤️ A project by [txthinking.com](https://www.txthinking.com)
## What
This project provides some tools to help you find google IP.
## How
> [Requirements][Requirements]
**`getssl.sh` get IP detail**
$ cd google-hosts/scripts
# get detail of 192.168.1.1
$ ./getssl.sh 192.168.1.1**`find.sh` wrapper of getssl.sh, get IP detail from CIDR**
$ cd google-hosts/scripts
# find IP from 192.168.1.1/24
$ ./find.sh 192.168.1.1/24**`filter.sh` filter IP from output directory(generated by find.sh) for some domain**
$ cd google-hosts/scripts
# filter IP for *.google.com
$ ./filter.sh *.google.com# filter IP for mail.google.com
$ ./filter.sh mail.google.com**`use.sh` use IP for some domain and update hosts.all**
$ cd google-hosts/scripts
# use 192.168.1.1 for *.google.com
$ ./use.sh *.google.com 192.168.1.1# use 192.168.1.1 for mail.google.com
$ ./use.sh mail.google.com 192.168.1.1**`select.sh` run filter.sh, use.sh, use the best IP for domains in hosts.all**
$ cd google-hosts/scripts
$ ./select.sh**`apply.sh` update ../hosts from hosts.all**
$ cd google-hosts/scripts
$ ./apply.sh**`auto.sh` find CIDR from a DNS and run find.sh, select.sh, apply.sh**
$ cd google-hosts/scripts
$ ./auto.sh DNS # DNS is like 8.8.8.8, but you should try DNS in diffrent countries.Explaination of output
| IP | LOSS | TIME | SSL |
| --- | ----------- | --------- | ---------- |
| IP | packet loss | ping time | ssl domain |## Must
- Use google dns / opendns / other
- Use international google. Make google no country redirect:
- Use `https`## Contributing
- vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8
## License
Licensed under The [MIT][MIT] License
[Requirements]: https://github.com/txthinking/google-hosts/blob/master/scripts/README.md
[MIT]: https://github.com/txthinking/google-hosts/blob/master/LICENSE