Skip to content

ksylvest/cloudflare-ips

Repository files navigation

Cloudflare IPs

LICENSE RubyGems GitHub Yard CircleCI

CloudflareIPs assigns the proxy IPv4 and IPv6 Cloudflare IPs allowing request.remote_ip to return back the actual IP instead of a Cloudflare datacenter IP.

Installation

Configure the Cloudflare IPs gem for any environment needed:

gem "cloudflare-ips"
$ bundle

Usage

Use request.remote_ip instead of request.ip to properly retrieve IPs:

request.remote_ip

About

Configure a Ruby on Rails Application w/ Cloudflare Proxy IPs

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages