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 do |ip|
Your::Model::IP.count({ :ip => ip.to_s }) != 0
end
Description
middleware to restrict ip address
Installation
Archive Installation
rake install
Gem Installation
gem install rack-auth-ip
Features/Problems
Copyright
- Author
-
Keiji, Yoshimi <walf443 at gmail.com>
- Copyright
-
Copyright © 2008 Keiji, Yoshimi
- License
-
you can redistribute it and/or modify it under the same terms as Ruby itself.