]> git.mxchange.org Git - friendica.git/commitdiff
Add a ChatGPT role for the built in robots.txt
authorMichael <heluecht@pirati.ca>
Thu, 10 Aug 2023 21:10:12 +0000 (21:10 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 10 Aug 2023 21:10:12 +0000 (21:10 +0000)
src/Module/RobotsTxt.php

index 49aab147136da57865335a67a13bdec27bf1e591..415a8ab4720861d345fd1536503540def3f3a43e 100644 (file)
@@ -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();
        }
 }