{"id":17572351,"url":"https://github.com/sch8ill/cloudflare-ips","last_synced_at":"2026-04-20T03:04:13.225Z","repository":{"id":258846831,"uuid":"875837569","full_name":"Sch8ill/cloudflare-ips","owner":"Sch8ill","description":"Automatically fetch and update Cloudflare proxy IPs, ensuring your trusted proxies are always up to date.","archived":false,"fork":false,"pushed_at":"2024-10-21T23:06:17.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T15:12:41.971Z","etag":null,"topics":["cloudflare","cloudflare-api","gin","gin-gonic","go","golang","http","http-server","library"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Sch8ill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-21T00:08:00.000Z","updated_at":"2024-10-21T23:05:52.000Z","dependencies_parsed_at":"2024-12-09T21:42:25.659Z","dependency_job_id":"ef2e80bb-1c68-45af-88eb-f38ad87126ff","html_url":"https://github.com/Sch8ill/cloudflare-ips","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"17e598da798979adbbcde36f90fd86c3485b4d3f"},"previous_names":["sch8ill/cloudflare-ips"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Sch8ill/cloudflare-ips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sch8ill%2Fcloudflare-ips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sch8ill%2Fcloudflare-ips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sch8ill%2Fcloudflare-ips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sch8ill%2Fcloudflare-ips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sch8ill","download_url":"https://codeload.github.com/Sch8ill/cloudflare-ips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sch8ill%2Fcloudflare-ips/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloudflare","cloudflare-api","gin","gin-gonic","go","golang","http","http-server","library"],"created_at":"2024-10-21T19:03:56.420Z","updated_at":"2026-04-20T03:04:13.176Z","avatar_url":"https://github.com/Sch8ill.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudflare-ips\n\n[![Release](https://img.shields.io/github/release/sch8ill/cloudflare-ips.svg?style=flat-square)](https://github.com/sch8ill/cloudflare-ips/releases)\n[![doc](https://img.shields.io/badge/go.dev-doc-007d9c?style=flat-square\u0026logo=read-the-docs)](https://pkg.go.dev/github.com/sch8ill/cloudflare-ips)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sch8ill/cloudflare-ips)](https://goreportcard.com/report/github.com/sch8ill/cloudflare-ips)\n![MIT license](https://img.shields.io/badge/license-MIT-green)\n\n---\n\nAutomatically fetch and update Cloudflare proxy IPs, ensuring your trusted proxies are always up to date.\n\n---\n\n\n## Installation\n\n```bash\ngo get github.com/sch8ill/cloudflare-ips\n```\n\n---\n\n## Usage\n\n```go\npackage main\n\nimport (\n        \"time\"\n\n        \"github.com/gin-gonic/gin\"\n        cloudflareips \"github.com/sch8ill/cloudflare-ips\"\n)\n\nfunc main() {\n        r := gin.Default()\n\n        // Set the current clouflare reverse proxies as trusted.\n        r.SetTrustedProxies(cloudflareips.MustFetch())\n\n        // OR\n\n        // Start a go routine that updates the trusted proxies list every 24 hours.\n        cloudflareips.Updater(time.Hour*24, r.SetTrustedProxies)\n\n        r.GET(\"/\", func(c *gin.Context) {\n                c.String(200, \"Hello World!\")\n        })\n\n        r.Run()\n}\n```\n\n## License\n\nThis package is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsch8ill%2Fcloudflare-ips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsch8ill%2Fcloudflare-ips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsch8ill%2Fcloudflare-ips/lists"}