Trying to check useragent

This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-05 10:35:25 +02:00
parent bc16ce4398
commit 3bfc7555e4
2 changed files with 6 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ app.get('/robots.txt', function (req, res) {
});
app.use(function (req, res, next) {
console.log("User agent", req.get("User-Agent"));
var cookie = req.cookies._uI;
if (cookie === undefined) {
var user_name = Functions.hash_pass(Functions.rndName(uniqid.time(), 15));