X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRobotsTxt.php;h=3651382a00b4f5f7c3aeb397840a97e58b389458;hb=8a7d08ae2860d82fe98a26f4e86626b3c7eb4d1e;hp=3648f6f9fba2186d1b60cf9c0385eae9aaf10f0c;hpb=b79201beaf428b8a7ae5ecdc17cd80052b952eaf;p=friendica.git diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php index 3648f6f9fb..3651382a00 100644 --- a/src/Module/RobotsTxt.php +++ b/src/Module/RobotsTxt.php @@ -1,20 +1,43 @@ . + * + */ 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 = [ '/settings/', '/admin/', '/message/', + '/search', + '/help', + '/proxy', ]; header('Content-Type: text/plain'); @@ -22,6 +45,6 @@ class RobotsTxt extends BaseModule foreach ($allDisalloweds as $disallowed) { echo 'Disallow: ' . $disallowed . PHP_EOL; } - exit(); + System::exit(); } }