Add blackhole routes to common exploit crawlers

This commit is contained in:
2020-11-18 12:12:40 +00:00
parent 2da5dd313c
commit 7a4e1324ee
2 changed files with 13 additions and 0 deletions

3
app.js
View File

@@ -26,6 +26,9 @@ const oneDay = 86400000;
app.use(compress());
app.use(express.static(__dirname + '/build'));
// Lets try and slow down some of those exploit crawlers
app.use("/", require('./filterRoutes'))
var md = markdown({html: true});
md.parser.use(emoji);