Skip to content

Commit 80161f4

Browse files
authored
Change robots.txt to exclude some URLs (mastodon#10037)
- Exclude static assets - Exclude uploaded files - Exclude alternate versions of the profile page - Exclude media proxy URLs
1 parent 7750416 commit 80161f4

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

public/robots.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2-
#
3-
# To ban all spiders from the entire site uncomment the next two lines:
4-
# User-agent: *
5-
# Disallow: /
1+
User-Agent: *
2+
Disallow: /users/*/followers
3+
Disallow: /users/*/following
4+
Disallow: /@*/media
5+
Disallow: /@*/with_replies
6+
Disallow: /@*/tagged/*
7+
Disallow: /media_proxy/*
8+
Disallow: /emoji/*
9+
Disallow: /packs/*
10+
Disallow: /sounds/*
11+
Disallow: /system/*
12+
Disallow: /avatars/*
13+
Disallow: /headers/*

0 commit comments

Comments
 (0)