@bonniernews/no-ai-robots
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @bonniernews/no-ai-robots

Weekly Downloads

555

Version

0.0.3

License

Apache-2.0

Unpacked Size

14.3 kB

Total Files

7

Last publish

Collaborators

  • erandersson
  • daghall
  • andreas.samuelsson
  • norla
  • mattiasobn
  • chrissode
  • jzachrisson
  • hilleso
  • adam.hakansson
  • amundsentb
  • jonaek
  • drgeobn
  • mikael.mattsson
  • morre
  • takolander
  • vitryssen
  • herbola
  • nifo
  • johark
  • aliceboberg
  • varneynz
  • gusliden
  • mxtr
  • karlbergc
  • martindanielson
  • joelekman
  • chavah
  • matsrorbecker
  • axeljohanssonbonniernews
  • markusn
  • linuss
  • joelabrahamsson
  • jonaswalden
  • indeedshouts
  • marcusgronblad