HOW TO: Block AI bots from scraping your content

As with any search engine a good way to block AI bots – ChatGPT for example – from scraping your content is to add the following lines to your robots.txt:

User-agent: CCBot
Disallow: /
User-agent: ChatGPT-User
Disallow: /