Skip to content

Commit

Permalink
Fixed robots.txt rules to be on separate lines
Browse files Browse the repository at this point in the history
Each rule in robots.txt should be a separate line based on https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt
  • Loading branch information
itsjeffleong committed Jun 8, 2024
1 parent ed9b306 commit 0041971
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/common/robots.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,19 @@ permalink: /robots.txt
eleventyExcludeFromCollections: true
excludeFromSitemap: true
---
User-agent: * Disallow: /404.html User-agent: GPTbot Disallow: / User-agent: ChatGPT-User Disallow: /
User-agent: Google-Extended Disallow: / User-agent: Omgilibot Disallow: / Sitemap: {{ meta.url }}/sitemap.xml
User-agent: *
Disallow: /404.html

User-agent: GPTbot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Omgilibot
Disallow: /

Sitemap: {{ meta.url }}/sitemap.xml

0 comments on commit 0041971

Please sign in to comment.