Page MenuHomePhorge

D25461.1726901912.diff
No OneTemporary

D25461.1726901912.diff

diff --git a/src/applications/system/controller/robots/PhabricatorRobotsPlatformController.php b/src/applications/system/controller/robots/PhabricatorRobotsPlatformController.php
--- a/src/applications/system/controller/robots/PhabricatorRobotsPlatformController.php
+++ b/src/applications/system/controller/robots/PhabricatorRobotsPlatformController.php
@@ -19,6 +19,13 @@
$out[] = 'Disallow: /diffusion/';
$out[] = 'Disallow: /source/';
+ // See T15662. Prevent indexing line anchor links in Pastes. Per RFC 9309
+ // section 2.2.3, percentage-encode "$" to avoid interpretation as end of
+ // match pattern. However, crawlers may not abide by it but follow the
+ // original standard at https://www.robotstxt.org/orig.html with no mention
+ // how to interpret characters like "$" and thus entirely ignore this rule.
+ $out[] = 'Disallow: /P*%24*';
+
// 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

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 21, 06:58 (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
893713
Default Alt Text
D25461.1726901912.diff (1 KB)

Event Timeline