Skip to content

Commit

Permalink
Jetpack MU WPCOM: Blog Privacy: Update Applebot-Extended disallow rule (
Browse files Browse the repository at this point in the history
#38599)

* Update applebot-extended disallow rule

* changelog
  • Loading branch information
dereksmart authored Jul 29, 2024
1 parent d2f0cb7 commit c39fc16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Blog Privacy: Update Applebot-Extended disallow rule
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function robots_txt( string $output, $public ): string {
$ai_bots = array(
'Amazonbot',
'anthropic-ai',
'Applebot-Extended',
'Bytespider',
'CCBot',
'ClaudeBot',
Expand All @@ -54,10 +55,6 @@ function robots_txt( string $output, $public ): string {
$output .= "\nUser-agent: {$ai_bot}\n";
$output .= "Disallow: /\n";
}

// https://support.apple.com/en-us/119829#datausage
$output .= "\nUser-agent: Applebot-Extended\n";
$output .= "Disallow: /private/\n";
}

return $output;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function provide_robots_txt(): \Iterator {
User-agent: anthropic-ai
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: Bytespider
Disallow: /
Expand Down Expand Up @@ -70,9 +73,6 @@ public function provide_robots_txt(): \Iterator {
User-agent: sentibot
Disallow: /
User-agent: Applebot-Extended
Disallow: /private/
AI_BLOCKS;

yield 'public, no discourage AI' => array(
Expand Down

0 comments on commit c39fc16

Please sign in to comment.