2020-11-18 12:12:40 +00:00
|
|
|
const express = require('express');
|
|
|
|
const router = express.Router();
|
2021-07-13 05:49:44 +00:00
|
|
|
const blackHole = function (req, res) {
|
|
|
|
res.redirect("https://crawler-test.com/redirects/infinite_redirect");
|
|
|
|
};
|
2021-01-28 14:14:04 +00:00
|
|
|
|
2021-01-28 14:08:09 +00:00
|
|
|
router.all('(/*)?/wp-admin/', blackHole);
|
|
|
|
router.all(/.*\.php$/, blackHole);
|
2022-07-21 06:03:17 +00:00
|
|
|
router.all(/.*\.asp$/, blackHole);
|
2021-01-28 14:08:09 +00:00
|
|
|
router.all(/.*\.aspx$/, blackHole);
|
2021-06-21 03:19:01 +00:00
|
|
|
router.all(/.*\.gz$/, blackHole);
|
2021-06-21 03:22:36 +00:00
|
|
|
router.all(/.*\.bz2$/, blackHole);
|
|
|
|
router.all(/.*\.tar$/, blackHole);
|
2021-06-22 19:17:07 +00:00
|
|
|
router.all(/.*\.sql$/, blackHole);
|
2022-07-21 06:03:17 +00:00
|
|
|
router.all('(/*)?/wp-includes/?(*)?', blackHole);
|
2021-01-28 14:08:09 +00:00
|
|
|
router.all('/.git/*?', blackHole);
|
|
|
|
router.all('/.env', blackHole);
|
2022-07-22 18:38:12 +00:00
|
|
|
router.all('/data/owncloud.log', blackHole);
|
2021-01-28 14:08:09 +00:00
|
|
|
router.all('/autodiscover/autodiscover.xml', blackHole)
|
|
|
|
router.all('/.well-known/autoconfig(/.*)?', blackHole)
|
|
|
|
router.all('/admin(/.*)?', blackHole)
|
2021-01-30 15:48:32 +00:00
|
|
|
router.all('/wordpress/', blackHole);
|
|
|
|
router.all('/wp(2)?/', blackHole);
|
|
|
|
router.all('/backup/', blackHole);
|
2022-07-21 06:03:17 +00:00
|
|
|
router.all('/database/', blackHole);
|
|
|
|
router.all('/db/', blackHole);
|
2021-06-21 03:22:36 +00:00
|
|
|
router.all('/db-backup/', blackHole);
|
|
|
|
router.all('/db_backup/', blackHole);
|
2021-06-22 19:17:07 +00:00
|
|
|
router.all('/sql-backup/', blackHole);
|
2022-07-21 06:03:17 +00:00
|
|
|
router.all('/sql/', blackHole);
|
|
|
|
router.all('/pma/', blackHole);
|
|
|
|
router.all('/phpmyadmin/', blackHole);
|
|
|
|
router.all('/mysqladmin/', blackHole);
|
|
|
|
router.all('/mysql/', blackHole);
|
|
|
|
router.all('/myadmin/', blackHole);
|
|
|
|
router.all('/uploads/', blackHole);
|
|
|
|
router.all('/test/', blackHole);
|
|
|
|
router.all('/temp/', blackHole);
|
|
|
|
router.all('/credentials(/*)?', blackHole);
|
|
|
|
router.all('/.vscode(/*)?', blackHole);
|
|
|
|
router.all('/sites/default/files/', blackHole);
|
2021-06-22 19:17:07 +00:00
|
|
|
router.all(/.*\/dbbackup\/.*/, blackHole);
|
2021-01-30 15:48:32 +00:00
|
|
|
router.all('/bak/', blackHole);
|
2021-02-05 21:59:58 +00:00
|
|
|
router.all(/.*\/mail\/config-.+\.xml/, blackHole);
|
2022-07-21 06:03:17 +00:00
|
|
|
router.all('archive.zip', blackHole);
|
2021-01-28 14:08:09 +00:00
|
|
|
router.post('*', blackHole);
|
|
|
|
router.put('*', blackHole);
|
|
|
|
router.delete('*', blackHole);
|
|
|
|
|
2020-11-18 12:12:40 +00:00
|
|
|
|
|
|
|
module.exports = router
|