diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-18 17:05:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-02-15 12:18:30 +0100 |
commit | 4fc9ac0a76f6137a40ec207f6b7e140dffb2768d (patch) | |
tree | e5747fe27f254d91d8c3c4a88fb2b44ec96c0924 /server.js | |
parent | 511c389d5c49188708471bcb9a1a2e5d26aadd52 (diff) | |
download | server-4fc9ac0a76f6137a40ec207f6b7e140dffb2768d.tar.gz |
Redirect to error page if MSIE detected.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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.'); |