Skip to content

Commit 3360d10

Browse files
authored
chore: discourage bots from trying account pages (#18750)
1 parent b56a9f7 commit 3360d10

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/functional/test_basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_robots_txt(app_config, domain, indexable):
3737
"Disallow: /search*\n"
3838
"Disallow: /_/\n"
3939
"Disallow: /integrity/\n"
40+
"Disallow: /account/\n"
4041
"Disallow: /admin/\n"
4142
)
4243
else:

warehouse/templates/robots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Disallow: /pypi*?
1313
Disallow: /search*
1414
Disallow: /_/
1515
Disallow: /integrity/
16+
Disallow: /account/
1617
Disallow: /admin/
1718
{% endif %}

0 commit comments

Comments
 (0)