Skip to content

Commit 47c1244

Browse files
committed
return on bot
1 parent 6faf21b commit 47c1244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

isuumo/webapp/nodejs/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ app.use(function (req, res, next) {
5252
if (BOT_REGEX.some((regex) => regex.test(agent))) {
5353
console.log("BOT blocked: " + agent)
5454
res.status(503).send();
55+
return;
5556
}
5657
next()
5758
})

0 commit comments

Comments
 (0)