RackAuthorisedProxy
Only permit requests that originate from an authorised reverse proxy
Installation
Add this line to your application's Gemfile:
gem 'rack_authorised_proxy'
And then execute:
$ bundle install
Usage
Add this line to your application's config.ru file:
use Rack::AuthorisedProxy
License
The gem is available as open source under the terms of the MIT License.