0.0
No commit activity in last 3 years
No release in over 3 years
A tiny middleware that determines whether this request was from the internal network or not.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

Build Status

Entrace

A tiny middleware that determines whether this request was from the internal network or not.

Installation

gem install rack-entrance

Usage

Add it to your middleware stack

ENV['ENTRANCE_INTERNAL_CIDRS'] = "127.0.0.1/32,192.0.2.21/24"
use Rack::Entrance

Use it in your Controllers

request.env['entrance.internal']  #=> true/false