{"id":13587744,"url":"https://github.com/txthinking/google-hosts","last_synced_at":"2025-04-13T13:24:06.773Z","repository":{"id":12331995,"uuid":"14971308","full_name":"txthinking/google-hosts","owner":"txthinking","description":"Google hosts generator","archived":false,"fork":false,"pushed_at":"2023-03-25T12:59:20.000Z","size":29680,"stargazers_count":3323,"open_issues_count":1,"forks_count":1243,"subscribers_count":453,"default_branch":"master","last_synced_at":"2025-04-13T11:24:06.443Z","etag":null,"topics":["generator","google","host","hosts","hostsfile"],"latest_commit_sha":null,"homepage":"https://www.txthinking.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/txthinking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"txthinking","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-12-06T02:03:59.000Z","updated_at":"2025-04-11T07:13:16.000Z","dependencies_parsed_at":"2024-01-13T10:42:46.224Z","dependency_job_id":"f5a6f0cc-27f6-43eb-96c2-7db410f3cc3e","html_url":"https://github.com/txthinking/google-hosts","commit_stats":{"total_commits":340,"total_committers":11,"mean_commits":30.90909090909091,"dds":0.05294117647058827,"last_synced_commit":"7945238106004c001044c62fad7505d38be960c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fgoogle-hosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fgoogle-hosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fgoogle-hosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txthinking%2Fgoogle-hosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txthinking","download_url":"https://codeload.github.com/txthinking/google-hosts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248718903,"owners_count":21150657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generator","google","host","hosts","hostsfile"],"created_at":"2024-08-01T15:06:20.621Z","updated_at":"2025-04-13T13:24:06.751Z","avatar_url":"https://github.com/txthinking.png","language":"Shell","readme":"# google-hosts\n\n[**What**](#what) \\| [**How**](#how) \\| [**Must**](#must) \\| [**Contributing**](#contributing) \\| [**License**](#license)\n\n[🗣 News](https://t.me/s/txthinking_news)\n[🩸 Youtube](https://www.youtube.com/txthinking) \n\n❤️ A project by [txthinking.com](https://www.txthinking.com)\n\n## What\n\nThis project provides some tools to help you find google IP.\n\n## How\n\n\u003e [Requirements][Requirements]\n\n**`getssl.sh` get IP detail**\n\n    $ cd google-hosts/scripts\n\n    # get detail of 192.168.1.1\n    $ ./getssl.sh 192.168.1.1\n\n**`find.sh` wrapper of getssl.sh, get IP detail from CIDR**\n\n    $ cd google-hosts/scripts\n\n    # find IP from 192.168.1.1/24\n    $ ./find.sh 192.168.1.1/24\n\n**`filter.sh` filter IP from output directory(generated by find.sh) for some domain**\n\n    $ cd google-hosts/scripts\n\n    # filter IP for *.google.com\n    $ ./filter.sh *.google.com\n\n    # filter IP for mail.google.com\n    $ ./filter.sh mail.google.com\n\n**`use.sh` use IP for some domain and update hosts.all**\n\n    $ cd google-hosts/scripts\n\n    # use 192.168.1.1 for *.google.com \n    $ ./use.sh *.google.com 192.168.1.1\n\n    # use 192.168.1.1 for mail.google.com \n    $ ./use.sh mail.google.com 192.168.1.1\n\n**`select.sh` run filter.sh, use.sh, use the best IP for domains in hosts.all**\n\n    $ cd google-hosts/scripts\n    $ ./select.sh\n\n**`apply.sh` update ../hosts from hosts.all** \n\n    $ cd google-hosts/scripts\n    $ ./apply.sh\n\n**`auto.sh` find CIDR from a DNS and run find.sh, select.sh, apply.sh**\n\n    $ cd google-hosts/scripts\n    $ ./auto.sh DNS # DNS is like 8.8.8.8, but you should try DNS in diffrent countries.\n\nExplaination of output \n\n| IP  | LOSS        | TIME      | SSL        |\n| --- | ----------- | --------- | ---------- |\n| IP  | packet loss | ping time | ssl domain |\n\n## Must\n\n-   Use google dns / opendns / other\n-   Use international google. Make google no country redirect: \u003chttps://www.google.com/ncr\u003e\n-   Use `https`\n\n## Contributing\n\n-   vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8\n\n## License\n\nLicensed under The [MIT][MIT] License\n\n[Requirements]: https://github.com/txthinking/google-hosts/blob/master/scripts/README.md\n\n[MIT]: https://github.com/txthinking/google-hosts/blob/master/LICENSE\n","funding_links":["https://github.com/sponsors/txthinking"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fgoogle-hosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxthinking%2Fgoogle-hosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxthinking%2Fgoogle-hosts/lists"}