mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to check useragent
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user