GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vmakhaev/oldbrowser: Connect middleware for restrict old browsers

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

Old Browser

Ask users to upgrade old browser

alt tag

  • Connect Middleware
  • Old browsers are redirected to "Your browser is too old :(" page
  • Configurable
  • Inspired by Ruby-browser

Known Issues

  • No support for minor browser versions
  • All requests without user agent are just allowed

Installation

npm install oldbrowser

Sample

var oldbrowser = require('oldbrowser');

...
  // Connect middleware
  .use(oldbrowser())

Defaults are:

var supportedBrowsers = {
  'Chrome': 13,
  'Firefox': 4,
  'IE': 10,
  'Opera': 15,
  'Safari': 5
};

If you want to overwrite:

var options = {
  browsers: {
    'IE': 6 // It means that only IE >= 6 are allowed. All other browsers are denied
  }
};

...
  // Connect middleware
  .use(oldbrowser(options))

About

Connect middleware for restrict old browsers

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.