initial commit

Yet another sandbox.

Bug: N/A
Signed-off-by: Yongmin Hong <revi@omglol.email>
This commit is contained in:
revi 2024-04-15 19:14:13 +09:00
commit 11f02e587f
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
2 changed files with 26 additions and 0 deletions

0
LICENSE Normal file
View file

View file

@ -0,0 +1,26 @@
<?php
final class PhabricatorRobotsController extends PhabricatorController {
public function shouldRequireLogin() {
return false;
}
public function processRequest() {
$out = array();
$out[] = 'User-Agent: *';
$out[] = 'Disallow: /herald/';
$out[] = 'Disallow: /passphrase/';
$out[] = 'Disallow: /conduit/';
$out[] = 'Disallow: /dashboard/';
$out[] = 'Crawl-delay: 1';
$content = implode("\n", $out)."\n";
return id(new AphrontPlainTextResponse())
->setContent($content)
->setCacheDurationInSeconds(phutil_units('2 hours in seconds'))
->setCanCDN(true);
}
}