diff --git a/filterRoutes.js b/filterRoutes.js index dc23c91..88d1ccc 100644 --- a/filterRoutes.js +++ b/filterRoutes.js @@ -1,13 +1,18 @@ const express = require('express'); - const router = express.Router(); -router.all('(/*)?/wp-admin/', function (req, res) {}); -router.all(/.*\.php$/, function (req, res) {}); -router.all('(/*)?/wp-includes/(*)?', function (req, res) {}); -router.all('/.git/*?', function (req, res) {}); -router.all('/.env', function (req, res) {}); -router.post('*', function (req, res) {}); -router.put('*', function (req, res) {}); -router.delete('*', function (req, res) {}); +router.all('(/*)?/wp-admin/', blackHole); +router.all(/.*\.php$/, blackHole); +router.all(/.*\.aspx$/, blackHole); +router.all('(/*)?/wp-includes/(*)?', blackHole); +router.all('/.git/*?', blackHole); +router.all('/.env', blackHole); +router.all('/autodiscover/autodiscover.xml', blackHole) +router.all('/.well-known/autoconfig(/.*)?', blackHole) +router.all('/admin(/.*)?', blackHole) +router.post('*', blackHole); +router.put('*', blackHole); +router.delete('*', blackHole); + +const blackHole = function (req, res) {}; module.exports = router