Page MenuHomePhorge

D25461.1734580445.diff
No OneTemporary

D25461.1734580445.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
Thu, Dec 19, 03:54 (14 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014999
Default Alt Text
D25461.1734580445.diff (1 KB)

Event Timeline