{"id":22069379,"url":"https://github.com/darealfreak/cloudflare-bp-go","last_synced_at":"2025-07-24T08:35:02.343Z","repository":{"id":50931566,"uuid":"231248567","full_name":"DaRealFreak/cloudflare-bp-go","owner":"DaRealFreak","description":"round tripper for Go's http library to avoid getting a CloudFlare challenge on the first request","archived":false,"fork":false,"pushed_at":"2022-02-16T14:44:33.000Z","size":49,"stargazers_count":59,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T14:23:39.059Z","etag":null,"topics":["cloudflare","http-client"],"latest_commit_sha":null,"homepage":null,"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/DaRealFreak.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}},"created_at":"2020-01-01T18:12:38.000Z","updated_at":"2025-02-02T23:35:08.000Z","dependencies_parsed_at":"2022-08-26T13:41:01.263Z","dependency_job_id":null,"html_url":"https://github.com/DaRealFreak/cloudflare-bp-go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DaRealFreak/cloudflare-bp-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaRealFreak%2Fcloudflare-bp-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaRealFreak%2Fcloudflare-bp-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaRealFreak%2Fcloudflare-bp-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaRealFreak%2Fcloudflare-bp-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaRealFreak","download_url":"https://codeload.github.com/DaRealFreak/cloudflare-bp-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaRealFreak%2Fcloudflare-bp-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266815218,"owners_count":23988562,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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","http-client"],"created_at":"2024-11-30T20:09:05.522Z","updated_at":"2025-07-24T08:35:00.839Z","avatar_url":"https://github.com/DaRealFreak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go CloudFlare ByPass\n![tests](https://github.com/DaRealFreak/cloudflare-bp-go/workflows/tests/badge.svg?branch=master) \n[![Coverage Status](https://coveralls.io/repos/github/DaRealFreak/cloudflare-bp-go/badge.svg?branch=master)](https://coveralls.io/github/DaRealFreak/cloudflare-bp-go?branch=master)\n![GitHub](https://img.shields.io/github/license/DaRealFreak/cloudflare-bp-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/DaRealFreak/cloudflare-bp-go)](https://goreportcard.com/report/github.com/DaRealFreak/cloudflare-bp-go)\n\nsmall round tripper to avoid triggering the \"attention required\" status of CloudFlare for HTTP requests.\nIt'll add required/validated headers on requests and update the client TLS configuration to pass the CloudFlare validation.\n\nThis is (at least so far) **NOT** intended to solve challenges provided by CloudFlare, only to prevent CloudFlare from directly displaying you a challenge on the first request.\n\nThe bypass is tested on a schedule everyday at 3 AM in case CloudFlare updated their detection, so the badge is always displaying if the bypass still works.\n\n## Dependencies\n- [eddycjy/fake-useragent](https://github.com/EDDYCJY/fake-useragent) - for setting a believable request user agent.\nCloudFlare is relatively forgiving with the user agents anyways but it'll add some variety for the long term.\n\n## Usage\nYou can add the round tripper as any other round tripper:\n```go\nclient := \u0026http.Client{}\nclient.Transport = cloudflarebp.AddCloudFlareByPass(client.Transport)\n```\n\nsmall notice:  \nUsing the http.DefaultTransport will currently still fail, nil or empty \u0026http.Transport works.\nDidn't have the time to check what exactly is different causing the CloudFlare validation to fail though.\n\n## Development\nWant to contribute? Great!  \nI'm always glad hearing about bugs or pull requests.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarealfreak%2Fcloudflare-bp-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarealfreak%2Fcloudflare-bp-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarealfreak%2Fcloudflare-bp-go/lists"}