Skip to content

cloudflare-rails

Active
modosc/cloudflare-rails

A Ruby gem that configures Rails for Cloudflare so request.remote_ip and request.ip return the real visitor IP, and adds Rack::Request#cloudflare?.

View on GitHub
Stars
339
Forks
52
Watchers
339
Open issues
8

Overview

cloudflare-rails configures Rails for Cloudflare so that request.remote_ip and request.ip both return the real visitor IP instead of a Cloudflare address. It also adds a #cloudflare? method to Rack::Request.

Compatibility

The current version needs railties, activesupport and actionpack 7.2 or newer. The README has a version chart for older Rails releases, back to Rails 4.2.

Similar open-source projects, ranked by shared categories and tags.

All Web Framework projects →