No commit activity in last 3 years
No release in over 3 years
This package is a Rack middleware which allow to block some IP Address. By default the french parlement is denied.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0

Runtime

~> 1.2
 Project Readme

FightForNetNeutrality

This package is a Rack middleware which allow to block some IP Address. By default the french parlement is denied.

See http://reflets.info/wp-neutalityfr-la-neutralite-du-net-expliquee-de-maniere-optimalisee-a-muriel/

Usage

Install FightForNetNeutrality:

$ gem install fight-for-net-neutrality

Then use this middleware in your config.ru:

require "fight_for_net_neutrality"
use FightForNetNeutrality

If you are using Ruby on Rails, see the Rails on Rack guide.

You can also define your own IP range:

use FightForNetNeutrality, ["62.160.71.0/24"]

That's it.

Credits

It's a port to Ruby world of a WSGI middleware: https://github.com/gawel/FightForNetNeutrality

Copyright (c) 2011 Bruno Michel bmichel@menfin.info Released under the MIT license