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
36df3589
Commit
36df3589
authored
Oct 26, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow WebIDE route in robots
parent
cfc6a8bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/272986-fj-disallow-webide-route-in-robots.yml
.../unreleased/272986-fj-disallow-webide-route-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
+1
-0
No files found.
changelogs/unreleased/272986-fj-disallow-webide-route-in-robots.yml
0 → 100644
View file @
36df3589
---
title
:
Disallow WebIDE route in robots.txt
merge_request
:
46117
author
:
type
:
changed
public/robots.txt
View file @
36df3589
...
...
@@ -22,6 +22,7 @@ Disallow: /users
Disallow: /help
Disallow: /s/
Disallow: /-/profile
Disallow: /-/ide/
# Only specifically allow the Sign In page to avoid very ugly search results
Allow: /users/sign_in
...
...
spec/requests/robots_txt_spec.rb
View file @
36df3589
...
...
@@ -35,6 +35,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
'/help'
,
'/s/'
,
'/-/profile'
,
'/-/ide/project'
,
'/foo/bar/new'
,
'/foo/bar/edit'
,
'/foo/bar/raw'
,
...
...
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