robots.txt

Same filename in this branch
  1. 11.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
  2. 11.x robots.txt
Same filename in other branches
  1. 7.x robots.txt
  2. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
  3. 9 core/assets/scaffold/files/robots.txt
  4. 9 robots.txt
  5. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
  6. 8.9.x core/assets/scaffold/files/robots.txt
  7. 8.9.x robots.txt
  8. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
  9. 10 core/assets/scaffold/files/robots.txt
  10. 10 robots.txt
#
# robots.txt
#
# This file is to prevent the crawling and indexing of certain parts
# of your site by web crawlers and spiders run by sites like Yahoo!
# and Google. By telling these "robots" where not to go on your site,
# you save bandwidth and server resources.
#
# This file will be ignored unless it is at the root of your host:
# Used:    http://example.com/robots.txt
# Ignored: http://example.com/site/robots.txt
#
# For more information about the robots.txt standard, see:
# http://www.robotstxt.org/robotstxt.html

User-agent: *
# CSS, JS, Images
Allow: /core/*.css$
Allow: /core/*.css?
Allow: /core/*.js$
Allow: /core/*.js?
Allow: /core/*.gif
Allow: /core/*.jpg
Allow: /core/*.jpeg
Allow: /core/*.png
Allow: /core/*.svg
Allow: /profiles/*.css$
Allow: /profiles/*.css?
Allow: /profiles/*.js$
Allow: /profiles/*.js?
Allow: /profiles/*.gif
Allow: /profiles/*.jpg
Allow: /profiles/*.jpeg
Allow: /profiles/*.png
Allow: /profiles/*.svg
# Directories
Disallow: /core/
Disallow: /profiles/
# Files
Disallow: /README.md
Disallow: /composer/Metapackage/README.txt
Disallow: /composer/Plugin/ProjectMessage/README.md
Disallow: /composer/Plugin/Scaffold/README.md
Disallow: /composer/Plugin/VendorHardening/README.txt
Disallow: /composer/Template/README.txt
Disallow: /modules/README.txt
Disallow: /sites/README.txt
Disallow: /themes/README.txt
# Paths (clean URLs)
Disallow: /admin/
Disallow: /comment/reply/
Disallow: /filter/tips
Disallow: /node/add/
Disallow: /search/
Disallow: /user/register
Disallow: /user/password
Disallow: /user/login
Disallow: /user/logout
Disallow: /media/oembed
Disallow: /*/media/oembed
# Paths (no clean URLs)
Disallow: /index.php/admin/
Disallow: /index.php/comment/reply/
Disallow: /index.php/filter/tips
Disallow: /index.php/node/add/
Disallow: /index.php/search/
Disallow: /index.php/user/password
Disallow: /index.php/user/register
Disallow: /index.php/user/login
Disallow: /index.php/user/logout
Disallow: /index.php/media/oembed
Disallow: /index.php/*/media/oembed

File

core/assets/scaffold/files/robots.txt

View source
  1. #
  2. # robots.txt
  3. #
  4. # This file is to prevent the crawling and indexing of certain parts
  5. # of your site by web crawlers and spiders run by sites like Yahoo!
  6. # and Google. By telling these "robots" where not to go on your site,
  7. # you save bandwidth and server resources.
  8. #
  9. # This file will be ignored unless it is at the root of your host:
  10. # Used: http://example.com/robots.txt
  11. # Ignored: http://example.com/site/robots.txt
  12. #
  13. # For more information about the robots.txt standard, see:
  14. # http://www.robotstxt.org/robotstxt.html
  15. User-agent: *
  16. # CSS, JS, Images
  17. Allow: /core/*.css$
  18. Allow: /core/*.css?
  19. Allow: /core/*.js$
  20. Allow: /core/*.js?
  21. Allow: /core/*.gif
  22. Allow: /core/*.jpg
  23. Allow: /core/*.jpeg
  24. Allow: /core/*.png
  25. Allow: /core/*.svg
  26. Allow: /profiles/*.css$
  27. Allow: /profiles/*.css?
  28. Allow: /profiles/*.js$
  29. Allow: /profiles/*.js?
  30. Allow: /profiles/*.gif
  31. Allow: /profiles/*.jpg
  32. Allow: /profiles/*.jpeg
  33. Allow: /profiles/*.png
  34. Allow: /profiles/*.svg
  35. # Directories
  36. Disallow: /core/
  37. Disallow: /profiles/
  38. # Files
  39. Disallow: /README.md
  40. Disallow: /composer/Metapackage/README.txt
  41. Disallow: /composer/Plugin/ProjectMessage/README.md
  42. Disallow: /composer/Plugin/Scaffold/README.md
  43. Disallow: /composer/Plugin/VendorHardening/README.txt
  44. Disallow: /composer/Template/README.txt
  45. Disallow: /modules/README.txt
  46. Disallow: /sites/README.txt
  47. Disallow: /themes/README.txt
  48. # Paths (clean URLs)
  49. Disallow: /admin/
  50. Disallow: /comment/reply/
  51. Disallow: /filter/tips
  52. Disallow: /node/add/
  53. Disallow: /search/
  54. Disallow: /user/register
  55. Disallow: /user/password
  56. Disallow: /user/login
  57. Disallow: /user/logout
  58. Disallow: /media/oembed
  59. Disallow: /*/media/oembed
  60. # Paths (no clean URLs)
  61. Disallow: /index.php/admin/
  62. Disallow: /index.php/comment/reply/
  63. Disallow: /index.php/filter/tips
  64. Disallow: /index.php/node/add/
  65. Disallow: /index.php/search/
  66. Disallow: /index.php/user/password
  67. Disallow: /index.php/user/register
  68. Disallow: /index.php/user/login
  69. Disallow: /index.php/user/logout
  70. Disallow: /index.php/media/oembed
  71. Disallow: /index.php/*/media/oembed

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.