Compare commits

..

3 Commits

Author SHA1 Message Date
09b375f666 Added robots.txt 2020-11-18 12:14:51 +00:00
7a4e1324ee Add blackhole routes to common exploit crawlers 2020-11-18 12:12:40 +00:00
2da5dd313c Fix broken link 2020-11-18 12:10:31 +00:00
3 changed files with 18 additions and 1 deletions

7
app.js
View File

@ -26,6 +26,13 @@ const oneDay = 86400000;
app.use(compress()); app.use(compress());
app.use(express.static(__dirname + '/build')); app.use(express.static(__dirname + '/build'));
// Lets try and slow down some of those exploit crawlers
app.use("/", require('./filterRoutes'))
app.get("/robots.txt", function(reg, res) {
res.send("User-agent: * Disallow: ")
})
var md = markdown({html: true}); var md = markdown({html: true});
md.parser.use(emoji); md.parser.use(emoji);

10
filterRoutes.js Normal file
View File

@ -0,0 +1,10 @@
const express = require('express');
const router = express.Router();
router.all('(/*)?/wp-admin/', function (req, res) {});
router.all('*?/xmlrpc.php', function (req, res) {});
router.all('(/*)?/wp-includes/(*)?', function (req, res) {});
router.all('/.git/*?', function (req, res) {});
router.all('/wp-login.php', function (req, res) {});
module.exports = router

View File

@ -6,7 +6,7 @@ tags: nodejs node npm javascript truncatise ghost
summary: "Today I finally got around to modifying my <a href='https://ghost.org/' target='_blank'>Ghost</a> blog to make use of my new Node Module <a href='//blog.marcusnoble.co.uk/publishing-my-first-npm-module/'>Truncatise</a>.<br/><br/>This didn't go as smoothly as I hoped." summary: "Today I finally got around to modifying my <a href='https://ghost.org/' target='_blank'>Ghost</a> blog to make use of my new Node Module <a href='//blog.marcusnoble.co.uk/publishing-my-first-npm-module/'>Truncatise</a>.<br/><br/>This didn't go as smoothly as I hoped."
--- ---
Today I finally got around to modifying my [Ghost](https://ghost.org/) blog to make use of my new Node Module [Truncatise](/10-29-2013-publishing-my-first-npm-module/). Today I finally got around to modifying my [Ghost](https://ghost.org/) blog to make use of my new Node Module [Truncatise](/29-10-2013-publishing-my-first-npm-module/).
This didn't go as smoothly as I hoped. This didn't go as smoothly as I hoped.