diff options
-rw-r--r-- | public/msie.html | 5 | ||||
-rw-r--r-- | server.js | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/public/msie.html b/public/msie.html new file mode 100644 index 0000000..1e4c7b3 --- /dev/null +++ b/public/msie.html @@ -0,0 +1,5 @@ +<html> +<h1 style="color:brown">Internet Explorer</h1> +<p>This site does not work with Internet Explorer. +<p>Please upgrade to a modern browser. +<p>Install <a href="https://www.mozilla.org/firefox/new/">Firefox Browser</a>. @@ -331,6 +331,8 @@ function parse_user_agent(req) { app.use(function (req, res, next) { req.user_agent = parse_user_agent(req); + if (req.user_agent === "MSIE") + return res.redirect("/msie.html"); res.setHeader('Cache-Control', 'no-store'); if (SQL_BLACKLIST_IP.get(req.connection.remoteAddress) === 1) return res.status(403).send('Sorry, but this IP has been banned.'); |