{"id":21419072,"url":"https://github.com/ksylvest/cloudflare-ips","last_synced_at":"2026-03-02T21:03:20.994Z","repository":{"id":261843081,"uuid":"885501189","full_name":"ksylvest/cloudflare-ips","owner":"ksylvest","description":"Configure a Ruby on Rails Application w/ Cloudflare Proxy IPs","archived":false,"fork":false,"pushed_at":"2025-01-10T14:05:04.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-19T23:57:25.314Z","etag":null,"topics":["cloudflare","rails","ruby"],"latest_commit_sha":null,"homepage":"https://cloudflare-ips.ksylvest.com/","language":"Ruby","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/ksylvest.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-11-08T17:53:14.000Z","updated_at":"2025-01-10T14:05:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"88e84730-2306-4fbf-bef2-1916110f2b73","html_url":"https://github.com/ksylvest/cloudflare-ips","commit_stats":null,"previous_names":["ksylvest/cloudflare_ips"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fcloudflare-ips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fcloudflare-ips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fcloudflare-ips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fcloudflare-ips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksylvest","download_url":"https://codeload.github.com/ksylvest/cloudflare-ips/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235233261,"owners_count":18957066,"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":["cloudflare","rails","ruby"],"created_at":"2024-11-22T19:34:55.367Z","updated_at":"2026-03-02T21:03:20.944Z","avatar_url":"https://github.com/ksylvest.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare IPs\n\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ksylvest/cloudflare-ips/blob/main/LICENSE)\n[![RubyGems](https://img.shields.io/gem/v/cloudflare-ips)](https://rubygems.org/gems/cloudflare-ips)\n[![GitHub](https://img.shields.io/badge/github-repo-blue.svg)](https://github.com/ksylvest/cloudflare-ips)\n[![Yard](https://img.shields.io/badge/docs-site-blue.svg)](https://cloudflare-ips.ksylvest.com)\n[![CircleCI](https://img.shields.io/circleci/build/github/ksylvest/cloudflare-ips)](https://circleci.com/gh/ksylvest/cloudflare-ips)\n\nCloudflareIPs assigns the proxy [IPv4](https://www.cloudflare.com/ips-v4/) and [IPv6](https://www.cloudflare.com/ips-v6/) Cloudflare IPs allowing `request.remote_ip` to return back the actual IP instead of a Cloudflare datacenter IP.\n\n## Installation\n\nConfigure the Cloudflare IPs gem for any environment needed:\n\n```ruby\ngem \"cloudflare-ips\"\n```\n\n```bash\n$ bundle\n```\n\n## Usage\n\nUse `request.remote_ip` instead of `request.ip` to properly retrieve IPs:\n\n```ruby\nrequest.remote_ip\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fcloudflare-ips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksylvest%2Fcloudflare-ips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fcloudflare-ips/lists"}