Skip to content

Commit

Permalink
Disable all bots and remove sitemap (#402)
Browse files Browse the repository at this point in the history
* Disable all bots and remove sitemap

* allow bots to access only the landing page
  • Loading branch information
bklaing2 authored Oct 16, 2024
1 parent 6035a0e commit ec94fa3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@

# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file

# Disallow every other robot
# Disallow every robot except for the landing page
User-agent: *
Allow: /$
Disallow: /

# Google can only index individual works pages
# Allow syntax is only really listened to by google and a few others
User-agent: Googlebot
Allow: /doi.org/

# Sitemap specific location
Sitemap: https://commons.datacite.org/sitemaps/sitemap.xml.gz

0 comments on commit ec94fa3

Please sign in to comment.