{"id":28779555,"url":"https://github.com/samjuk/google-index-checker","last_synced_at":"2025-09-07T02:33:48.145Z","repository":{"id":298980959,"uuid":"1001740506","full_name":"SamJUK/google-index-checker","owner":"SamJUK","description":"Golang script to help identify accidentally indexed subdomains","archived":false,"fork":false,"pushed_at":"2025-06-13T23:52:49.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-14T00:26:29.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamJUK.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-13T23:37:09.000Z","updated_at":"2025-06-13T23:53:22.000Z","dependencies_parsed_at":"2025-06-14T00:36:34.672Z","dependency_job_id":null,"html_url":"https://github.com/SamJUK/google-index-checker","commit_stats":null,"previous_names":["samjuk/google-index-checker"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/SamJUK/google-index-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fgoogle-index-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fgoogle-index-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fgoogle-index-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fgoogle-index-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamJUK","download_url":"https://codeload.github.com/SamJUK/google-index-checker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamJUK%2Fgoogle-index-checker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260406245,"owners_count":23004121,"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":[],"created_at":"2025-06-17T17:07:28.509Z","updated_at":"2025-09-07T02:33:48.129Z","avatar_url":"https://github.com/SamJUK.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Index Checker\n\nA small Golang script to help identify accidentally indexed subdomains. Using a [Google Custom Search Engine](https://developers.google.com/custom-search/v1/overview) and domain inclusion and exclusion filters. \n\n\u003e NOTE: Google Custom Search Engines results can sometimes differ from the actual Google results. Dunno why, but occasionally worth running a manual check in google as well. See the following section #Manual Search Query\n\n## Usage\n\nTo use this tool, you need to setup our own google custom search engine and associated API key. See the following [Google document](https://developers.google.com/custom-search/v1/overview) on how to do that.\n\nIn the below examples, we are using the following scenario:\n- Primary domain is `example.com`\n- `www.example.com` and `www2.example.com` are the only domains expected to be indexed\n\n\n### Authentication\n\nYou need to provide the Google CSE ID (Custom Search Engine) and Google API key to the script. This can either be done via environment variables, or through CLI flags.\n\nRecommendation, is setting them via a ENV file.\n\nName | ENV VAR | CLI FLAG | CLI SHORT FLAG\n--- | --- | --- | ---\nCustom Search Engine ID | `GOOGLE_CSE_ID` | `--google-cse-id` | `-c`\nGoogle API Key | `GOOGLE_API_KEY` | `--google-api-key` | `-k`\n\n\n### Docker\n\nAssuming you have your Google tokens setup in a `.env` file.\n\n```sh\ndocker run --env-file .env samjuk/google-index-checker -d example.com -n www.example.com -n www2.example.com\n```\n\n## Manual Search Query\n\nAlternatively, you can run the Google search query directly with the following query.\n\n```\nsite:example.com -site:www.example.com -site:www2.example.com\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamjuk%2Fgoogle-index-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamjuk%2Fgoogle-index-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamjuk%2Fgoogle-index-checker/lists"}