Fastly IPs

LICENSE RubyGems GitHub Yard CircleCI

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

Installation

Configure the fastly IPs gem for any environment needed:

gem "fastly-ips"
$ bundle

Usage

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

request.remote_ip