0.1.1 • Published 12 years ago

connect-block v0.1.1

Weekly downloads
8
License
-
Repository
github
Last release
12 years ago

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:

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

0.1.1

12 years ago

0.1.0

12 years ago