2015-08-18 02:11:16 -04:00
|
|
|
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
2011-10-08 17:36:38 -04:00
|
|
|
#
|
|
|
|
# To ban all spiders from the entire site uncomment the next two lines:
|
|
|
|
# User-Agent: *
|
|
|
|
# Disallow: /
|
2015-08-18 02:11:16 -04:00
|
|
|
|
|
|
|
# Add a 1 second delay between successive requests to the same server, limits resources used by crawler
|
|
|
|
# Only some crawlers respect this setting, e.g. Googlebot does not
|
|
|
|
# Crawl-delay: 1
|
|
|
|
|
2020-06-19 14:08:39 -04:00
|
|
|
# Based on details in https://gitlab.com/gitlab-org/gitlab/blob/master/config/routes.rb,
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/blob/master/spec/routing, and using application
|
|
|
|
|
|
|
|
# Global routes
|
2017-01-18 07:21:16 -05:00
|
|
|
User-Agent: *
|
2015-08-18 02:11:16 -04:00
|
|
|
Disallow: /autocomplete/users
|
2020-10-28 05:08:37 -04:00
|
|
|
Disallow: /autocomplete/projects
|
2015-08-18 02:11:16 -04:00
|
|
|
Disallow: /search
|
|
|
|
Disallow: /admin
|
|
|
|
Disallow: /profile
|
|
|
|
Disallow: /dashboard
|
|
|
|
Disallow: /users
|
2018-03-22 05:55:02 -04:00
|
|
|
Disallow: /help
|
2020-06-19 14:08:39 -04:00
|
|
|
Disallow: /s/
|
2020-10-27 08:08:33 -04:00
|
|
|
Disallow: /-/profile
|
2020-10-28 11:08:49 -04:00
|
|
|
Disallow: /-/ide/
|
2020-10-28 14:08:52 -04:00
|
|
|
# Restrict allowed routes to avoid very ugly search results
|
2018-09-07 03:27:29 -04:00
|
|
|
Allow: /users/sign_in
|
2020-10-28 14:08:52 -04:00
|
|
|
Allow: /users/*/snippets
|
2015-08-18 02:11:16 -04:00
|
|
|
|
2020-06-19 14:08:39 -04:00
|
|
|
# Generic resource routes like new, edit, raw
|
|
|
|
# This will block routes like:
|
|
|
|
# - /projects/new
|
|
|
|
# - /gitlab-org/gitlab-foss/issues/123/-/edit
|
2017-01-18 07:21:16 -05:00
|
|
|
User-Agent: *
|
2020-06-19 14:08:39 -04:00
|
|
|
Disallow: /*/new
|
|
|
|
Disallow: /*/edit
|
|
|
|
Disallow: /*/raw
|
2020-10-29 14:09:11 -04:00
|
|
|
Disallow: /*/realtime_changes
|
2020-06-19 14:08:39 -04:00
|
|
|
|
|
|
|
# Group details
|
|
|
|
User-Agent: *
|
|
|
|
Disallow: /groups/*/analytics
|
|
|
|
Disallow: /groups/*/contribution_analytics
|
|
|
|
Disallow: /groups/*/group_members
|
2015-08-18 02:11:16 -04:00
|
|
|
|
|
|
|
# Project details
|
2017-01-18 07:21:16 -05:00
|
|
|
User-Agent: *
|
2020-10-27 11:08:39 -04:00
|
|
|
Disallow: /*/*.git$
|
2020-06-19 14:08:39 -04:00
|
|
|
Disallow: /*/archive/
|
|
|
|
Disallow: /*/repository/archive*
|
|
|
|
Disallow: /*/activity
|
|
|
|
Disallow: /*/blame
|
|
|
|
Disallow: /*/commits
|
|
|
|
Disallow: /*/commit
|
|
|
|
Disallow: /*/commit/*.patch
|
|
|
|
Disallow: /*/commit/*.diff
|
|
|
|
Disallow: /*/compare
|
|
|
|
Disallow: /*/network
|
|
|
|
Disallow: /*/graphs
|
|
|
|
Disallow: /*/merge_requests/*.patch
|
|
|
|
Disallow: /*/merge_requests/*.diff
|
|
|
|
Disallow: /*/merge_requests/*/diffs
|
|
|
|
Disallow: /*/deploy_keys
|
|
|
|
Disallow: /*/hooks
|
|
|
|
Disallow: /*/services
|
|
|
|
Disallow: /*/protected_branches
|
|
|
|
Disallow: /*/uploads/
|
2018-11-29 17:06:42 -05:00
|
|
|
Disallow: /*/project_members
|
2020-06-19 14:08:39 -04:00
|
|
|
Disallow: /*/settings
|
2020-10-28 20:08:36 -04:00
|
|
|
Disallow: /*/-/import
|
|
|
|
Disallow: /*/-/environments
|
|
|
|
Disallow: /*/-/jobs
|
|
|
|
Disallow: /*/-/requirements_management
|
|
|
|
Disallow: /*/-/pipelines
|
|
|
|
Disallow: /*/-/pipeline_schedules
|
|
|
|
Disallow: /*/-/dependencies
|
|
|
|
Disallow: /*/-/licenses
|
|
|
|
Disallow: /*/-/metrics
|
|
|
|
Disallow: /*/-/incidents
|
|
|
|
Disallow: /*/-/value_stream_analytics
|
|
|
|
Disallow: /*/-/analytics
|
|
|
|
Disallow: /*/insights
|