mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
GPTBot added to the default robots.txt
This commit is contained in:
parent
18c078f8c2
commit
d3cc999866
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue