Commit 01621395 authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets Committed by Nick Thomas

Clean up robots.txt

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 46aeecdf
...@@ -8,7 +8,10 @@ ...@@ -8,7 +8,10 @@
# Only some crawlers respect this setting, e.g. Googlebot does not # Only some crawlers respect this setting, e.g. Googlebot does not
# Crawl-delay: 1 # Crawl-delay: 1
# 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 # 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
User-Agent: * User-Agent: *
Disallow: /autocomplete/users Disallow: /autocomplete/users
Disallow: /search Disallow: /search
...@@ -16,62 +19,48 @@ Disallow: /api ...@@ -16,62 +19,48 @@ Disallow: /api
Disallow: /admin Disallow: /admin
Disallow: /profile Disallow: /profile
Disallow: /dashboard Disallow: /dashboard
Disallow: /projects/new
Disallow: /groups/new
Disallow: /groups/*/edit
Disallow: /users Disallow: /users
Disallow: /help Disallow: /help
Disallow: /s/
# Only specifically allow the Sign In page to avoid very ugly search results # Only specifically allow the Sign In page to avoid very ugly search results
Allow: /users/sign_in Allow: /users/sign_in
# Global snippets # Generic resource routes like new, edit, raw
# This will block routes like:
# - /projects/new
# - /gitlab-org/gitlab-foss/issues/123/-/edit
User-Agent: * User-Agent: *
Disallow: /s/ Disallow: /*/new
Disallow: /snippets/new Disallow: /*/edit
Disallow: /snippets/*/edit Disallow: /*/raw
Disallow: /snippets/*/raw
# Group details
User-Agent: *
Disallow: /groups/*/analytics
Disallow: /groups/*/contribution_analytics
Disallow: /groups/*/group_members
# Project details # Project details
User-Agent: * User-Agent: *
Disallow: /*/*.git Disallow: /*/*.git
Disallow: /*/*/fork/new Disallow: /*/archive/
Disallow: /*/-/archive/ Disallow: /*/repository/archive*
Disallow: /*/*/repository/archive* Disallow: /*/activity
Disallow: /*/*/activity Disallow: /*/blame
Disallow: /*/*/new Disallow: /*/commits
Disallow: /*/*/edit Disallow: /*/commit
Disallow: /*/*/raw Disallow: /*/commit/*.patch
Disallow: /*/*/blame Disallow: /*/commit/*.diff
Disallow: /*/*/commits/*/* Disallow: /*/compare
Disallow: /*/*/commit/*.patch Disallow: /*/network
Disallow: /*/*/commit/*.diff Disallow: /*/graphs
Disallow: /*/*/compare Disallow: /*/merge_requests/*.patch
Disallow: /*/*/branches/new Disallow: /*/merge_requests/*.diff
Disallow: /*/*/tags/new Disallow: /*/merge_requests/*/diffs
Disallow: /*/*/network Disallow: /*/deploy_keys
Disallow: /*/*/graphs Disallow: /*/hooks
Disallow: /*/*/milestones/new Disallow: /*/services
Disallow: /*/*/milestones/*/edit Disallow: /*/protected_branches
Disallow: /*/*/issues/new Disallow: /*/uploads/
Disallow: /*/*/issues/*/edit
Disallow: /*/*/-/merge_requests/new
Disallow: /*/*/-/merge_requests/*.patch
Disallow: /*/*/-/merge_requests/*.diff
Disallow: /*/*/-/merge_requests/*/edit
Disallow: /*/*/-/merge_requests/*/diffs
Disallow: /*/*/project_members/import
Disallow: /*/*/labels/new
Disallow: /*/*/labels/*/edit
Disallow: /*/*/wikis/*/edit
Disallow: /*/*/snippets/new
Disallow: /*/*/snippets/*/edit
Disallow: /*/*/snippets/*/raw
Disallow: /*/*/deploy_keys
Disallow: /*/*/hooks
Disallow: /*/*/services
Disallow: /*/*/protected_branches
Disallow: /*/*/uploads/
Disallow: /*/-/group_members
Disallow: /*/project_members Disallow: /*/project_members
Disallow: /groups/*/-/contribution_analytics Disallow: /*/settings
Disallow: /groups/*/-/analytics
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment