This commit is contained in:
Marcus Noble 2021-07-31 06:22:36 +01:00
commit 204f1d3a1b

View File

@ -1,6 +1,8 @@
const express = require('express'); const express = require('express');
const router = express.Router(); const router = express.Router();
const blackHole = function (req, res) {}; const blackHole = function (req, res) {
res.redirect("https://crawler-test.com/redirects/infinite_redirect");
};
router.all('(/*)?/wp-admin/', blackHole); router.all('(/*)?/wp-admin/', blackHole);
router.all(/.*\.php$/, blackHole); router.all(/.*\.php$/, blackHole);
@ -24,6 +26,7 @@ router.all('/sql-backup/', blackHole);
router.all(/.*\/dbbackup\/.*/, blackHole); router.all(/.*\/dbbackup\/.*/, blackHole);
router.all('/bak/', blackHole); router.all('/bak/', blackHole);
router.all(/.*\/mail\/config-.+\.xml/, blackHole); router.all(/.*\/mail\/config-.+\.xml/, blackHole);
router.all(/archive\.zip/, blackHole);
router.post('*', blackHole); router.post('*', blackHole);
router.put('*', blackHole); router.put('*', blackHole);
router.delete('*', blackHole); router.delete('*', blackHole);