Skip to content

Commit e766538

Browse files
authored
Add more pages to robots.txt (#17798)
1 parent 08153b2 commit e766538

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/functional/test_basic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def test_robots_txt(app_config, domain, indexable):
3737
"Disallow: /pypi/*/*/json\n"
3838
"Disallow: /pypi*?\n"
3939
"Disallow: /search*\n"
40+
"Disallow: /_/\n"
41+
"Disallow: /integrity/\n"
42+
"Disallow: /admin/\n"
4043
)
4144
else:
4245
assert body == (

warehouse/templates/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ Disallow: /pypi/*/json
1111
Disallow: /pypi/*/*/json
1212
Disallow: /pypi*?
1313
Disallow: /search*
14+
Disallow: /_/
15+
Disallow: /integrity/
16+
Disallow: /admin/
1417
{% endif %}

0 commit comments

Comments
 (0)