Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680601
D25461.1734580445.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25461.1734580445.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25461: Disallow webcrawlers to follow Paste line number anchor links
Attached
Detach File
Event Timeline
Log In to Comment