From c71eda1ef5d1ba1d65b6b3e32e4ede223d7cae65 Mon Sep 17 00:00:00 2001 From: Andrew H Date: Sun, 24 Apr 2016 17:59:27 +0000 Subject: [PATCH] Add X-Robots-Tag header to Special:Export dumps Adds "X-Robots-Tag: noindex,nofollow" header to Special:Export dumps so that dumps are not indexed by search engines. Bug: T91363 Change-Id: Ia96ec40ff185fdfd024312ee3cfe3c736ba8d806 --- includes/specials/SpecialExport.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index ede367ee08..3e66ab08d3 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -168,6 +168,7 @@ class SpecialExport extends SpecialPage { // This should provide safer streaming for pages with history wfResetOutputBuffers(); $request->response()->header( "Content-type: application/xml; charset=utf-8" ); + $request->response()->header( "X-Robots-Tag: noindex,nofollow" ); if ( $request->getCheck( 'wpDownload' ) ) { // Provide a sane filename suggestion -- 2.20.1