Skip to content

Commit

Permalink
Block AI bots
Browse files Browse the repository at this point in the history
Closes #1766
  • Loading branch information
razzeee committed Aug 20, 2023
1 parent b9e407a commit 06eb4f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ module.exports = {
generateRobotsTxt: true,
exclude: ["/server-sitemap-index.xml"],
robotsTxtOptions: {
policies: [
{
userAgent: "GPTBot",
disallow: ["/"],
},
{
userAgent: "CCBot",
disallow: ["/"],
},
],
additionalSitemaps: [
`${process.env.NEXT_PUBLIC_SITE_BASE_URI}/server-sitemap-index.xml`,
],
Expand Down

0 comments on commit 06eb4f1

Please sign in to comment.