From 8c3245d36d43f851dc0716095510e56a14b5fa30 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 20 Nov 2020 08:08:51 +0000 Subject: [PATCH] More bot filtering --- filterRoutes.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/filterRoutes.js b/filterRoutes.js index 8895cc1..dc23c91 100644 --- a/filterRoutes.js +++ b/filterRoutes.js @@ -2,9 +2,12 @@ const express = require('express'); const router = express.Router(); router.all('(/*)?/wp-admin/', function (req, res) {}); -router.all('*?/xmlrpc.php', function (req, res) {}); +router.all(/.*\.php$/, function (req, res) {}); router.all('(/*)?/wp-includes/(*)?', function (req, res) {}); router.all('/.git/*?', function (req, res) {}); -router.all('/wp-login.php', function (req, res) {}); +router.all('/.env', function (req, res) {}); +router.post('*', function (req, res) {}); +router.put('*', function (req, res) {}); +router.delete('*', function (req, res) {}); module.exports = router