UNPKG

express-honeypots

Version:

This repository contains a collection of honeypots for the Express framework to prevent automated scanning.

15 lines (10 loc) 273 B
import express from 'express'; import honeypots from './index.mjs'; const app = express(); app.use(honeypots()); app.get('/', (req, res) => { res.send('Hello World'); }); app.listen(3000, () => { console.log('Server is running on port 3000'); });