Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df66ae2c
Commit
df66ae2c
authored
Oct 27, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow some project routes
parent
82808dc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
changelogs/unreleased/273148-fj-disallow-some-project-routes.yml
...ogs/unreleased/273148-fj-disallow-some-project-routes.yml
+5
-0
public/robots.txt
public/robots.txt
+13
-0
spec/requests/robots_txt_spec.rb
spec/requests/robots_txt_spec.rb
+14
-1
No files found.
changelogs/unreleased/273148-fj-disallow-some-project-routes.yml
0 → 100644
View file @
df66ae2c
---
title
:
Disallow some project routes in robots.txt
merge_request
:
46218
author
:
type
:
changed
public/robots.txt
View file @
df66ae2c
...
...
@@ -67,3 +67,16 @@ Disallow: /*/protected_branches
Disallow: /*/uploads/
Disallow: /*/project_members
Disallow: /*/settings
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
spec/requests/robots_txt_spec.rb
View file @
df66ae2c
...
...
@@ -66,7 +66,20 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
'/foo/bar/uploads/foo'
,
'/foo/bar/project_members'
,
'/foo/bar/settings'
,
'/namespace/subnamespace/design.gitlab.com/settings'
'/namespace/subnamespace/design.gitlab.com/settings'
,
'/foo/bar/-/import'
,
'/foo/bar/-/environments'
,
'/foo/bar/-/jobs'
,
'/foo/bar/-/requirements_management'
,
'/foo/bar/-/pipelines'
,
'/foo/bar/-/pipeline_schedules'
,
'/foo/bar/-/dependencies'
,
'/foo/bar/-/licenses'
,
'/foo/bar/-/metrics'
,
'/foo/bar/-/incidents'
,
'/foo/bar/-/value_stream_analytics'
,
'/foo/bar/-/analytics'
,
'/foo/bar/insights'
]
requests
.
each
do
|
request
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment