Skip to content

Commit

Permalink
added the lines for the dataset/dataverse thumbnails/favicons, for th…
Browse files Browse the repository at this point in the history
…e twitter/facebook/linkedin preview cards. (#5639)
  • Loading branch information
landreev committed Mar 21, 2019
1 parent d6724f1 commit 14e36fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
3 changes: 3 additions & 0 deletions doc/sphinx-guides/source/_static/util/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Allow: /$
Allow: /dataset.xhtml
Allow: /dataverse/
Allow: /sitemap/
# The following lines are for the facebook, twitter and linkedin preview bots:
Allow: /api/datasets/:persistentId/thumbnail
Allow: /javax.faces.resource/images/
# Comment out the following TWO lines if you DON'T MIND the bots crawling the search API links on dataverse pages:
Disallow: /dataverse/*?q
Disallow: /dataverse/*/search
Expand Down
24 changes: 3 additions & 21 deletions src/main/webapp/robots.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# Consult the guide on how to open your Dataverse installation to crawling by
# search engine bots:
# /guides/installation/config.html#letting-search-engines-crawl-your-installation
User-agent: *
Disallow: /
User-agent: Googlebot
Disallow: /
#Crawl-delay: 120
#Disallow: /dvn/faces/javax.faces.resource
#Disallow: /dvn/OAIHandler
#Disallow: /dvn/faces/ContactUsPage.xhtml
#Disallow: /dvn/dv/*/faces/ContactUsPage.xhtml
#Disallow: /dvn/faces/study/TermsOfUsePage.xhtml
#Disallow: /dvn/faces/subsetting/SubsettingPage.xhtml
#Disallow: /dvn/dv/*/faces/subsetting/SubsettingPage.xhtml
#Disallow: /dvn/FileDownload/
#Disallow: /FileDownload/
#Disallow: /dvn/dv/*/FileDownload/
#Disallow: /dvn/resources/
#Disallow: /dvn/api/
#


# Created initially using: http://www.mcanerin.com/EN/search-engine/robots-txt.asp
# Verified using: http://tool.motoricerca.info/robots-checker.phtml

0 comments on commit 14e36fd

Please sign in to comment.