GWicke has uploaded a new change for review. https://gerrit.wikimedia.org/r/236200
Change subject: Disallow indexing for /api/ ...................................................................... Disallow indexing for /api/ We don't want our APIs to be indexed by search engines, so disallow the /api/ entry point in robots.txt. We do want the API docs to be indexed, so whitelist those. Change-Id: I01261d5d74d194f6fe5f46023366c9a9b5b5ff9e --- M robots.txt 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/00/236200/1 diff --git a/robots.txt b/robots.txt index 192d094..0b7ac18 100644 --- a/robots.txt +++ b/robots.txt @@ -140,11 +140,16 @@ # mobile web & app views to load section content. # These views aren't HTTP-cached but use parser cache aggressively # and don't expose special: pages etc. +# +# Another exception is for REST API documentation, located at +# /api/rest_v1/?doc. # User-agent: * Allow: /w/api.php?action=mobileview& Allow: /w/load.php? +Allow: /api/rest_v1/? Disallow: /w/ +Disallow: /api/ Disallow: /trap/ Disallow: /wiki/Especial:Search Disallow: /wiki/Especial%3ASearch -- To view, visit https://gerrit.wikimedia.org/r/236200 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I01261d5d74d194f6fe5f46023366c9a9b5b5ff9e Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: GWicke <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
