Commit a43eaf5c authored by James Lopez's avatar James Lopez

Merge branch '272984-fj-forbid-autocomplete-projects' into 'master'

Disallow /autocomplete/projects in Robots.txt

See merge request gitlab-org/gitlab!46115
parents 44f97ac3 1d7c3b8a
---
title: Disallow /autocomplete/projects route in robots.txt
merge_request: 46115
author:
type: changed
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# Global routes # Global routes
User-Agent: * User-Agent: *
Disallow: /autocomplete/users Disallow: /autocomplete/users
Disallow: /autocomplete/projects
Disallow: /search Disallow: /search
Disallow: /admin Disallow: /admin
Disallow: /profile Disallow: /profile
......
...@@ -27,6 +27,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do ...@@ -27,6 +27,7 @@ RSpec.describe 'Robots.txt Requests', :aggregate_failures do
it 'blocks the requests' do it 'blocks the requests' do
requests = [ requests = [
'/autocomplete/users', '/autocomplete/users',
'/autocomplete/projects',
'/search', '/search',
'/admin', '/admin',
'/profile', '/profile',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment