API: Set robots noindex,nofollow on HTML output
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 25 Oct 2018 13:31:31 +0000 (09:31 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 25 Oct 2018 13:37:30 +0000 (09:37 -0400)
commit46875ad86141fe614eeadbaa843204fa80967218
tree79d18571a21f22cd0ac90ff1a920b7b391c9e4de
parent78573c77cb208609c10cb5f43dba507245db53da
API: Set robots noindex,nofollow on HTML output

There's probably not much benefit in search engines indexing the API
auto-generated help or various random "format=jsonfm" outputs.

On Wikimedia wikis we already have a robots.txt entry denying indexing
of everything under /w/, which includes api.php.

Bug: T207818
Change-Id: I196d401eeb5fcf49844265df41ad3cce83ffdcdf
includes/api/ApiFormatBase.php
includes/api/ApiHelp.php