Updated blackhole to point to infinite redirect

This commit is contained in:
Marcus Noble 2021-07-13 05:49:44 +00:00
parent 88e9ee5d33
commit 569cee1c5e

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);
@ -22,6 +24,7 @@ router.all('/db_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);