Updated list of blocked paths
This commit is contained in:
parent
cb6c8919b4
commit
955d28ccd1
@ -1,13 +1,18 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
router.all('(/*)?/wp-admin/', function (req, res) {});
|
router.all('(/*)?/wp-admin/', blackHole);
|
||||||
router.all(/.*\.php$/, function (req, res) {});
|
router.all(/.*\.php$/, blackHole);
|
||||||
router.all('(/*)?/wp-includes/(*)?', function (req, res) {});
|
router.all(/.*\.aspx$/, blackHole);
|
||||||
router.all('/.git/*?', function (req, res) {});
|
router.all('(/*)?/wp-includes/(*)?', blackHole);
|
||||||
router.all('/.env', function (req, res) {});
|
router.all('/.git/*?', blackHole);
|
||||||
router.post('*', function (req, res) {});
|
router.all('/.env', blackHole);
|
||||||
router.put('*', function (req, res) {});
|
router.all('/autodiscover/autodiscover.xml', blackHole)
|
||||||
router.delete('*', function (req, res) {});
|
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
|
module.exports = router
|
||||||
|
Loading…
Reference in New Issue
Block a user