From b76f1cd53de46e41aaef5f62b4c90a0f29aedfd4 Mon Sep 17 00:00:00 2001 From: N-Upchurch Date: Tue, 15 Aug 2023 09:30:40 -0500 Subject: [PATCH] Add robots.txt - block chatgpt --- eleventy.config.js | 1 + public/robots.txt | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 public/robots.txt diff --git a/eleventy.config.js b/eleventy.config.js index 2fdb2cb..e68029c 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -41,6 +41,7 @@ module.exports = function(eleventyConfig) { // Passthrough eleventyConfig.addPassthroughCopy({ 'public/xsl/*': "/xsl/" }); eleventyConfig.addPassthroughCopy({ 'public/img/*': "/img/" }); + eleventyConfig.addPassthroughCopy({ 'public/robots.txt': "/" }); // Copying so that basic.xsl can use it eleventyConfig.addPassthroughCopy({ 'public/css/index.css': "/css/index.css" }); eleventyConfig.addPassthroughCopy({ 'public/css/webfonts/*': "/css/webfonts/" }); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..f4625e6 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: GPTBot +Disallow: /