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
1d7c3b8a
Commit
1d7c3b8a
authored
Oct 28, 2020
by
Francisco Javier López
Committed by
James Lopez
Oct 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow /autocomplete/projects in Robots.txt
parent
3cc29387
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/272984-fj-forbid-autocomplete-projects.yml
...ogs/unreleased/272984-fj-forbid-autocomplete-projects.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/272984-fj-forbid-autocomplete-projects.yml
0 → 100644
View file @
1d7c3b8a
---
title
:
Disallow /autocomplete/projects route in robots.txt
merge_request
:
46115
author
:
type
:
changed
public/robots.txt
View file @
1d7c3b8a
...
...
@@ -14,6 +14,7 @@
# Global routes
User-Agent: *
Disallow: /autocomplete/users
Disallow: /autocomplete/projects
Disallow: /search
Disallow: /admin
Disallow: /profile
...
...
spec/requests/robots_txt_spec.rb
View file @
1d7c3b8a
...
...
@@ -27,6 +27,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it
'blocks the requests'
do
requests
=
[
'/autocomplete/users'
,
'/autocomplete/projects'
,
'/search'
,
'/admin'
,
'/profile'
,
...
...
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