Skip to content

Commit

Permalink
block all the ai bots
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Oct 6, 2023
1 parent 01d2afa commit 43e510b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
date: 2023-10-06T10:22:16.581Z

title: Block the Bots that Feed “AI” Models by Scraping Your Website
linkurl: https://neil-clarke.com/block-the-bots-that-feed-ai-models-by-scraping-your-website/

tags:
- development
- ai
---

Neil Clarke with an [excellent overview](https://neil-clarke.com/block-the-bots-that-feed-ai-models-by-scraping-your-website/) about current techniques to block all the "AI" web scraping bots from your content, e.g. via `robots.txt`. The reasons for doing so are numerous:

> “AI” companies think that we should have to opt-out of data-scraping bots that take our work to train their products. [...] These companies should be prevented from using data that they haven’t been given explicit consent for. Opt-out is problematic as it counts on concerned parties hearing about new or modified bots BEFORE their sites are targeted by them. That is simply not practical.[...] The online community is under no responsibility to help them create their products.
19 changes: 18 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
# https://platform.openai.com/docs/gptbot
User-agent: CCBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Omgilibot
Disallow: /

User-agent: Omgili
Disallow: /

User-agent: FacebookBot
Disallow: /

User-agent: *
Disallow: /search/
Disallow: /page/
Expand Down
1 change: 1 addition & 0 deletions src/layouts/Base/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' })

<meta name="theme-color" content="" />
<meta name="msapplication-TileColor" content="" />
<meta name="robots" content="noai, noimageai" />

<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" href={faviconSvg.src} type="image/svg+xml" />
Expand Down

1 comment on commit 43e510b

@vercel
Copy link

@vercel vercel bot commented on 43e510b Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-git-main-kremalicious.vercel.app
blog-kremalicious.vercel.app
kremalicious.vercel.app

Please sign in to comment.