20after4 has uploaded a new change for review.

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

Change subject: add /files/ to robots.txt exclusion
......................................................................

add /files/ to robots.txt exclusion

Search engine spiders are stressing phabricator. See also T109247

Bug: T109279
Change-Id: Idcc93f99b0ea3ac21aabbd3c6ecd612c925ef4bc
---
M src/applications/system/controller/PhabricatorRobotsController.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/phabricator/phabricator 
refs/changes/61/232061/1

diff --git a/src/applications/system/controller/PhabricatorRobotsController.php 
b/src/applications/system/controller/PhabricatorRobotsController.php
index b7767d7..11177f4 100644
--- a/src/applications/system/controller/PhabricatorRobotsController.php
+++ b/src/applications/system/controller/PhabricatorRobotsController.php
@@ -21,13 +21,14 @@
     $out[] = 'User-Agent: *';
     $out[] = 'Disallow: /diffusion/';
     $out[] = 'Disallow: /multimeter/';
+    $out[] = 'Disallow: /file/';
 
     // Add a small crawl delay (number of seconds between requests) for spiders
     // which respect it. The intent here is to prevent spiders from affecting
     // performance for users. The possible cost is slower indexing, but that
     // seems like a reasonable tradeoff, since most Phabricator installs are
     // probably not hugely concerned about cutting-edge SEO.
-    $out[] = 'Crawl-delay: 1';
+    $out[] = 'Crawl-delay: 2';
 
     $content = implode("\n", $out)."\n";
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idcc93f99b0ea3ac21aabbd3c6ecd612c925ef4bc
Gerrit-PatchSet: 1
Gerrit-Project: phabricator/phabricator
Gerrit-Branch: production
Gerrit-Owner: 20after4 <[email protected]>

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

Reply via email to