A Rack middleware to redirect (*cough* kick) IE6 users out of your website
Ruby
Pull request Compare This branch is 13 commits ahead, 12 commits behind juliocesar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
Rakefile
VERSION.yml
rack-noie6.gemspec

README.md

rack-noie6

rack-noie6 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).

Originally developed by juliocesar, sant0sk1 forked and gemified for easier distribution, wjessop added the minimum version option, and robomc made it pass Rack::Lint.

usage

gem install rack-noie6
require "noie6"

and

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

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

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

or let the default kick in

use Rack::NoIE6

You can even specify a minimum version of IE like so

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

disclaimer

The default URL points to Microsoft's IE upgrade page.

license

MIT