Same filename in this branch
  1. 9 robots.txt
  2. 9 core/assets/scaffold/files/robots.txt
  3. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/robots.txt
Same filename and directory in other branches
  1. 10 robots.txt
  2. 5.x robots.txt
  3. 6.x robots.txt
  4. 7.x robots.txt
  5. 8.9.x 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.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.txt
  40. Disallow: /web.config
  41. # Paths (clean URLs)
  42. Disallow: /admin/
  43. Disallow: /comment/reply/
  44. Disallow: /filter/tips
  45. Disallow: /node/add/
  46. Disallow: /search/
  47. Disallow: /user/register
  48. Disallow: /user/password
  49. Disallow: /user/login
  50. Disallow: /user/logout
  51. Disallow: /media/oembed
  52. Disallow: /*/media/oembed
  53. # Paths (no clean URLs)
  54. Disallow: /index.php/admin/
  55. Disallow: /index.php/comment/reply/
  56. Disallow: /index.php/filter/tips
  57. Disallow: /index.php/node/add/
  58. Disallow: /index.php/search/
  59. Disallow: /index.php/user/password
  60. Disallow: /index.php/user/register
  61. Disallow: /index.php/user/login
  62. Disallow: /index.php/user/logout
  63. Disallow: /index.php/media/oembed
  64. Disallow: /index.php/*/media/oembed