venus-pit
v2.0.1
Published
Express.js-based tarpit
Readme
Venus
Venus is a low-overhead, easy to implement tarpit designed to protect against all crawlers, most notably AI ones. To have decent SEO and use venus at the same time, blacklist the venus prefix on robots.txt
Installation
Usage
By default, Venus is set up to be ran directly inside of an express app. If you do not want to use express or do not want to use node.js, set up an ngnix proxy to serve Venus from the prefix. In order for Venus to work properly, you must link the prefix somewhere on your site.
With express.js
import Venus from "./venus.js"
import express from 'express'
const app = express()
const venus = new Venus("/prefix/")
app.use(venus.prefix, venus.route())
app.listen(8080, () => {
console.log("Listening on port 8080")
})Building
npm run build
See /docs/ for a more in depth documentation
