X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRobotsTxt.php;h=49aab147136da57865335a67a13bdec27bf1e591;hb=706444bdb22b57f18c284044bdbdaeb7610990fe;hp=3648f6f9fba2186d1b60cf9c0385eae9aaf10f0c;hpb=bd604d1cfb07fe43016f07a6d1f82877dd910b4c;p=friendica.git diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php index 3648f6f9fb..49aab14713 100644 --- a/src/Module/RobotsTxt.php +++ b/src/Module/RobotsTxt.php @@ -1,27 +1,50 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\Core\System; /** * Return the default robots.txt */ class RobotsTxt extends BaseModule { - public static function rawContent() + protected function rawContent(array $request = []) { - $allDisalloweds = [ + $allDisallowed = [ '/settings/', '/admin/', '/message/', + '/search', + '/help', + '/proxy', ]; header('Content-Type: text/plain'); echo 'User-agent: *' . PHP_EOL; - foreach ($allDisalloweds as $disallowed) { + foreach ($allDisallowed as $disallowed) { echo 'Disallow: ' . $disallowed . PHP_EOL; } - exit(); + System::exit(); } }