Same filename in this branch
  1. 10 robots.txt
  2. 10 core/assets/scaffold/files/robots.txt
  3. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
Same filename and directory in other branches
  1. 5.x robots.txt
  2. 6.x robots.txt
  3. 7.x robots.txt
  4. 8.9.x robots.txt
  5. 9 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
Disallow: /web.config
# 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

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. Disallow: /web.config
  49. # Paths (clean URLs)
  50. Disallow: /admin/
  51. Disallow: /comment/reply/
  52. Disallow: /filter/tips
  53. Disallow: /node/add/
  54. Disallow: /search/
  55. Disallow: /user/register
  56. Disallow: /user/password
  57. Disallow: /user/login
  58. Disallow: /user/logout
  59. Disallow: /media/oembed
  60. Disallow: /*/media/oembed
  61. # Paths (no clean URLs)
  62. Disallow: /index.php/admin/
  63. Disallow: /index.php/comment/reply/
  64. Disallow: /index.php/filter/tips
  65. Disallow: /index.php/node/add/
  66. Disallow: /index.php/search/
  67. Disallow: /index.php/user/password
  68. Disallow: /index.php/user/register
  69. Disallow: /index.php/user/login
  70. Disallow: /index.php/user/logout
  71. Disallow: /index.php/media/oembed
  72. Disallow: /index.php/*/media/oembed