0.0.3 • Published 2 years ago

@bonniernews/no-ai-robots v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

no-ai-robots

Contains a robots.txt with deny directives for known AI robots.

Blocked robots

See robots.txt

Usage with express

const noRobots = require("@bonniernews/no-ai-robots");

function noRobotsMiddleware(req, res) {
  res.set("Cache-Control", "max-age=300");
  res.set("Content-Type", "text/plain; charset=utf-8");
  return res.send(`${noRobots}
    Sitemap: https://epic-site/sitemap.xml
  `);
}

app.use("/robots.txt", robotsMiddleware);
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago