-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc3c5a2
commit 8e4f241
Showing
2 changed files
with
72 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: google-hosts | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,107 @@ | ||
google-hosts | ||
============ | ||
# google-hosts [![Financial Contributors on Open Collective](https://opencollective.com/google-hosts/all/badge.svg?label=financial+contributors)](https://opencollective.com/google-hosts) | ||
|
||
[**What**](#what) | [**How**](#how) | [**Must**](#must) | [**Contributing**](#contributing) | [**License**](#license) | ||
[**What**](#what) \| [**How**](#how) \| [**Must**](#must) \| [**Contributing**](#contributing) \| [**License**](#license) | ||
|
||
What | ||
--- | ||
## What | ||
|
||
This project provides some tools to help you find google IP. | ||
|
||
How | ||
--- | ||
## 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 | ||
``` | ||
$ 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 | ||
$ cd google-hosts/scripts | ||
|
||
# find IP from 192.168.1.1/24 | ||
$ ./find.sh 192.168.1.1/24 | ||
``` | ||
# 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 | ||
$ cd google-hosts/scripts | ||
|
||
# filter IP for *.google.com | ||
$ ./filter.sh *.google.com | ||
# filter IP for *.google.com | ||
$ ./filter.sh *.google.com | ||
|
||
# filter IP for mail.google.com | ||
$ ./filter.sh mail.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 | ||
$ 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 *.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 | ||
``` | ||
# 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 | ||
``` | ||
$ cd google-hosts/scripts | ||
$ ./select.sh | ||
|
||
**`apply.sh` update ../hosts from hosts.all** | ||
|
||
``` | ||
$ cd google-hosts/scripts | ||
$ ./apply.sh | ||
``` | ||
$ 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. | ||
``` | ||
$ 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 | | ||
| 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: <https://www.google.com/ncr> | ||
- Use `https` | ||
|
||
## Contributing | ||
|
||
- vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8 | ||
|
||
Must | ||
--- | ||
## Financial Contributors | ||
|
||
* Use google dns / opendns / other | ||
* Use international google. Make google no country redirect: <https://www.google.com/ncr> | ||
* Use `https` | ||
Become a financial contributor and help us sustain our community. \[[Contribute](https://opencollective.com/google-hosts/contribute)] | ||
|
||
Contributing | ||
--- | ||
#### Individuals | ||
|
||
* vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8 | ||
<a href="https://opencollective.com/google-hosts"><img src="https://opencollective.com/google-hosts/individuals.svg?width=890"></a> | ||
|
||
License | ||
--- | ||
#### Organizations | ||
|
||
Support this project with your organization. Your logo will show up here with a link to your website. \[[Contribute](https://opencollective.com/google-hosts/contribute)] | ||
|
||
<a href="https://opencollective.com/google-hosts/organization/0/website"><img src="https://opencollective.com/google-hosts/organization/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/1/website"><img src="https://opencollective.com/google-hosts/organization/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/2/website"><img src="https://opencollective.com/google-hosts/organization/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/3/website"><img src="https://opencollective.com/google-hosts/organization/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/4/website"><img src="https://opencollective.com/google-hosts/organization/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/5/website"><img src="https://opencollective.com/google-hosts/organization/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/6/website"><img src="https://opencollective.com/google-hosts/organization/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/7/website"><img src="https://opencollective.com/google-hosts/organization/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/8/website"><img src="https://opencollective.com/google-hosts/organization/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/google-hosts/organization/9/website"><img src="https://opencollective.com/google-hosts/organization/9/avatar.svg"></a> | ||
|
||
## 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 |