From: Michael Date: Thu, 10 Aug 2023 21:10:12 +0000 (+0000) Subject: Add a ChatGPT role for the built in robots.txt X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=241624027f70a48c51aa012b1532c2f9ba67bfb5;p=friendica.git Add a ChatGPT role for the built in robots.txt --- diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php index 49aab14713..415a8ab472 100644 --- a/src/Module/RobotsTxt.php +++ b/src/Module/RobotsTxt.php @@ -45,6 +45,11 @@ class RobotsTxt extends BaseModule foreach ($allDisallowed as $disallowed) { echo 'Disallow: ' . $disallowed . PHP_EOL; } + + echo PHP_EOL; + echo 'User-agent: ChatGPT-User' . PHP_EOL; + echo 'Disallow: /' . PHP_EOL; + System::exit(); } }