]> cat aescling's git repositories - mastodon.git/commitdiff
Change robots.txt to exclude only media proxy URLs (#10038)
authornightpool <nightpool@users.noreply.github.com>
Thu, 14 Feb 2019 02:11:47 +0000 (21:11 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 14 Feb 2019 02:11:47 +0000 (03:11 +0100)
* Revert "Change robots.txt to exclude some URLs (#10037)"

This reverts commit 80161f43510ad9316c60c9b50dd5c09c2dae4d54.

* 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

public/robots.txt

index 36afc85eff582b40a6ee4f87f4389aecc53f904f..d93648beee28c91a74d07b46c260a382daf61080 100644 (file)
@@ -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/