Rails/Merb plugin that controls host access like hosts.allow
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core_ext
lib
tasks
test
MIT-LICENSE
README
Rakefile
hosts_access.gemspec
init.rb
install.rb
uninstall.rb

README

HostsAccess
===========

  Rails / Merb plugin that controls host access like hosts.allow


Usage
=====
  config/environment.rb (in Rails)
  config/init.rb        (in Merb)

    # specify hosts to allow access
    HostsAccess.allow = ['127.0.0.1', 'ac.wota.jp']

    # allow_controller means non-acl controllers
    HostsAccess.allow_controller = ['account', 'stats_report']

Note
====

  All accesses are allowed if no rules are given


Environment
===========

  tested on

  * Rails 1.2
  * Merb 1.0.3


Copyright (c) 2008 maiha@wota.jp, released under the MIT license