Skip to content

Commit

Permalink
Change robots.txt to exclude only media proxy URLs (mastodon#10038)
Browse files Browse the repository at this point in the history
* Revert "Change robots.txt to exclude some URLs (mastodon#10037)"

This reverts commit 80161f4.

* Let's block media_proxy

/media_proxy/ is a dynamic route used for requesting uncached media, so it's
probably bad to let crawlers use it

* misleading comment
  • Loading branch information
nightpool authored and hiyuki2578 committed Oct 2, 2019
1 parent c69c0f6 commit 12e9e52
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
User-Agent: *
Disallow: /users/*/followers
Disallow: /users/*/following
Disallow: /@*/media
Disallow: /@*/with_replies
Disallow: /@*/tagged/*
Disallow: /media_proxy/*
Disallow: /emoji/*
Disallow: /packs/*
Disallow: /sounds/*
Disallow: /system/*
Disallow: /avatars/*
Disallow: /headers/*
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file

User-agent: *
Disallow: /media_proxy/

0 comments on commit 12e9e52

Please sign in to comment.