]> git.mxchange.org Git - friendica.git/commitdiff
GPTBot added to the default robots.txt
authorMichael <heluecht@pirati.ca>
Sun, 20 Aug 2023 12:41:42 +0000 (12:41 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Aug 2023 12:41:42 +0000 (12:41 +0000)
src/Module/RobotsTxt.php

index 415a8ab4720861d345fd1536503540def3f3a43e..a084c1f4a6caf97c168b501e7df2f2daa11a8b86 100644 (file)
@@ -38,6 +38,8 @@ class RobotsTxt extends BaseModule
                        '/search',
                        '/help',
                        '/proxy',
+                       '/photo',
+                       '/avatar',
                ];
 
                header('Content-Type: text/plain');
@@ -50,6 +52,10 @@ class RobotsTxt extends BaseModule
                echo 'User-agent: ChatGPT-User' . PHP_EOL;
                echo 'Disallow: /' . PHP_EOL;
 
+               echo PHP_EOL;
+               echo 'User-agent: GPTBot' . PHP_EOL;
+               echo 'Disallow: /' . PHP_EOL;
+
                System::exit();
        }
 }