Updated list of blocked paths
This commit is contained in:
parent
cb6c8919b4
commit
955d28ccd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user