Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansobol committed Feb 8, 2012
1 parent ee9ce09 commit ab60919
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# rack-bouncer

rack-bouncer does _everyone_ a favor: it shows the way out of your website to poor souls out there using Internet Explorer 6 (or a user configurable minimum).
A Rack middleware that expels undesirable browsers out of your website.

| Browser | Versions |
|-------------------|----------|
| Internet Explorer | >= 7 |
| AOL | All |

## usage

gem install rack-bouncer
require "rack/bouncer"

and
The default redirects users to [Browse Happy](http://browsehappy.com/), like so:

use Rack::Bouncer, redirect: "/noieplease.html"
use Rack::Bouncer

the above will redirect to a page noieplease.html in your website. You can redirect to
a URL as well, like so
You can redirect users to a page in your website, like so:

use Rack::Bouncer, redirect: "http://slashdot.org"
use Rack::Bouncer, redirect: "/bouncer.html"

or let the default kick in
You can redirect users to a URL as well, like so:

use Rack::Bouncer
use Rack::Bouncer, redirect: "http://slashdot.org"

You can even specify a minimum version of IE like so
You can even specify a minimum version of IE like so:

use Rack::Bouncer, redirect: "http://slashdot.org", minimum: 6.0

## disclaimer

The default URL points to [Browse Happy](http://browsehappy.com/).

## acknowledgments

Thanks to [juliocesar](http://github.com/juliocesar), [sant0sk1](http://github.com/sant0sk1), [wjessop](http://github.com/wjessop), and [robomc](https://github.com/robomc) for their contributions to Rack::NoIE6.
Expand Down

0 comments on commit ab60919

Please sign in to comment.