Unicornisaurous has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/285087

Change subject: Add X-Robots-Tag header to Special:Export dumps
......................................................................

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
---
M includes/specials/SpecialExport.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/87/285087/1

diff --git a/includes/specials/SpecialExport.php 
b/includes/specials/SpecialExport.php
index ede367e..3e66ab0 100644
--- a/includes/specials/SpecialExport.php
+++ b/includes/specials/SpecialExport.php
@@ -168,6 +168,7 @@
                        // 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

-- 
To view, visit https://gerrit.wikimedia.org/r/285087
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia96ec40ff185fdfd024312ee3cfe3c736ba8d806
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Unicornisaurous <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to