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
1736592a
Commit
1736592a
authored
Aug 04, 2021
by
jejacks0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add experiment routes to robots.txt
parent
858320c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-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.
public/robots.txt
View file @
1736592a
...
@@ -24,6 +24,7 @@ Disallow: /help
...
@@ -24,6 +24,7 @@ Disallow: /help
Disallow: /s/
Disallow: /s/
Disallow: /-/profile
Disallow: /-/profile
Disallow: /-/ide/
Disallow: /-/ide/
Disallow: /-/experiment
# Restrict allowed routes to avoid very ugly search results
# Restrict allowed routes to avoid very ugly search results
Allow: /users/sign_in
Allow: /users/sign_in
Allow: /users/*/snippets
Allow: /users/*/snippets
...
...
spec/requests/robots_txt_spec.rb
View file @
1736592a
...
@@ -28,6 +28,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
...
@@ -28,6 +28,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it
'blocks the requests'
do
it
'blocks the requests'
do
requests
=
[
requests
=
[
Gitlab
::
Experiment
::
Configuration
.
mount_at
,
'/autocomplete/users'
,
'/autocomplete/users'
,
'/autocomplete/projects'
,
'/autocomplete/projects'
,
'/search'
,
'/search'
,
...
...
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