Skip to content
Simple IP Whitelisting middleware for Rack servers
Ruby
Pull request Compare This branch is 9 commits ahead of jake3030:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.textile
Rakefile
rack-ip-whitelist.gemspec

README.textile

IP Whitelist Middleware

About

Rack Middleware for websites that need to contain access to a group of ip addresses (a whitelist).
Outside these addresses, vistors are shown 403 Forbidden page.

Usage

Rails 3

in Gemfile

gem 'rack-ip-whitelist'

in config/application.rb

config.middleware.use Rack::IpWhiteList, %w(55.44.22.11 55.44.11.22) # array of whitelisted addresses%

Something went wrong with that request. Please try again.