Skip to content

Commit

Permalink
Change robots.txt to exclude some URLs (mastodon#10037)
Browse files Browse the repository at this point in the history
- Exclude static assets
- Exclude uploaded files
- Exclude alternate versions of the profile page
- Exclude media proxy URLs
  • Loading branch information
Gargron authored Feb 13, 2019
1 parent 7750416 commit 80161f4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-agent: *
# Disallow: /
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/*

0 comments on commit 80161f4

Please sign in to comment.