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
625b5bd5
Commit
625b5bd5
authored
Oct 23, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forbid issues realtime_changes route in robots.txt
parent
451fbf0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
changelogs/unreleased/271550-fj-forbid-realtime_changes-in-robots.yml
...nreleased/271550-fj-forbid-realtime_changes-in-robots.yml
+5
-0
public/robots.txt
public/robots.txt
+1
-0
spec/requests/robots_txt_spec.rb
spec/requests/robots_txt_spec.rb
+3
-1
No files found.
changelogs/unreleased/271550-fj-forbid-realtime_changes-in-robots.yml
0 → 100644
View file @
625b5bd5
---
title
:
Disallow realtime_changes route in robots.txt
merge_request
:
45986
author
:
type
:
changed
public/robots.txt
View file @
625b5bd5
...
@@ -36,6 +36,7 @@ User-Agent: *
...
@@ -36,6 +36,7 @@ User-Agent: *
Disallow: /*/new
Disallow: /*/new
Disallow: /*/edit
Disallow: /*/edit
Disallow: /*/raw
Disallow: /*/raw
Disallow: /*/realtime_changes
# Group details
# Group details
User-Agent: *
User-Agent: *
...
...
spec/requests/robots_txt_spec.rb
View file @
625b5bd5
...
@@ -79,7 +79,9 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
...
@@ -79,7 +79,9 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
'/foo/bar/-/incidents'
,
'/foo/bar/-/incidents'
,
'/foo/bar/-/value_stream_analytics'
,
'/foo/bar/-/value_stream_analytics'
,
'/foo/bar/-/analytics'
,
'/foo/bar/-/analytics'
,
'/foo/bar/insights'
'/foo/bar/insights'
,
'/foo/bar/-/issues/123/realtime_changes'
,
'/groups/group/-/epics/123/realtime_changes'
]
]
requests
.
each
do
|
request
|
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