Skip to content
rack's middleware to restrict ip adress
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/rack/auth
spec
tasks
ChangeLog
README
Rakefile

README

= rack-auth-ip
middleware to restrict ip address

== Synopsis

in your_app.ru
  require 'rack/auth/ip'
  # allow access only local network
  use Rack::Auth::IP, (%w( 192.168.0.0/24 ))

  # you can use block
  # ip is IPAddr instance.
  use Rack::Auth::IP {|ip|
    Your::Model::IP.count({ :ip => ip.to_s }) != 0 
  }

== Description
middleware to restrict ip address

== Installation

=== Archive Installation

	rake install

=== Gem Installation

	gem install rackauthip

== Features/Problems

== Copyright

Author::    Keiji, Yoshimi <walf443 at gmail.com>
Copyright:: Copyright (c) 2008 Keiji, Yoshimi
License:: you can redistribute it and/or modify it under the same terms as Ruby itself.
Something went wrong with that request. Please try again.