Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Best browser compatible solutioin
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
test
Readme.md
package.json

Readme.md

Best browser compatible solution!

A middleware for connect

var block = require('connect-block');
connect(
    block('IE8'), //you can use IE, IE6, IE7, IE8, IE9, IE10 or RegExp
    block({agent: ['google'], text: 'Goodbye'), // block google bot
    function(req, res){
      res.end('You have passed.');
    }
).listen(3000);

If your browse this page in IE6,IE7,IE8 you will got:

Sorry! Your browser is not supported.

Choose another browser

Chrome | Firefox | Safari

And it supported Chinese and English now, other languages will treat as English.

Something went wrong with that request. Please try again.