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

0.0.4 • 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", noRobotsMiddleware);

Readme

Keywords

none

Package Sidebar

Install

npm i @bonniernews/no-ai-robots

Weekly Downloads

801

Version

0.0.4

License

Apache-2.0

Unpacked Size

14.7 kB

Total Files

7

Last publish

Collaborators

  • oscartholander
  • wisko
  • schristianssonbn
  • marie-winther
  • dan.karlsson
  • erandersson
  • daghall
  • andreas.samuelsson
  • norla
  • mattiasobn
  • jzachrisson
  • hilleso
  • adam.hakansson
  • amundsentb
  • jonaek
  • drgeobn
  • mikael.mattsson
  • morre
  • takolander
  • vitryssen
  • herbola
  • nifo
  • johark
  • aliceboberg
  • varneynz
  • gusliden
  • mxtr
  • karlbergc
  • joelekman
  • chavah
  • matsrorbecker
  • axeljohanssonbonniernews
  • markusn
  • jonaswalden
  • indeedshouts
  • marcusgronblad