]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RobotsTxt.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / RobotsTxt.php
index 49aab147136da57865335a67a13bdec27bf1e591..96a2451ad24625f9ce4f18302262a08160730e4a 100644 (file)
@@ -38,6 +38,8 @@ class RobotsTxt extends BaseModule
                        '/search',
                        '/help',
                        '/proxy',
+                       '/photo',
+                       '/avatar',
                ];
 
                header('Content-Type: text/plain');
@@ -45,6 +47,19 @@ 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;
+
+               echo PHP_EOL;
+               echo 'User-agent: Google-Extended' . PHP_EOL;
+               echo 'Disallow: /' . PHP_EOL;
+
+               echo PHP_EOL;
+               echo 'User-agent: GPTBot' . PHP_EOL;
+               echo 'Disallow: /' . PHP_EOL;
+
                System::exit();
        }
 }