Skip to content

Commit

Permalink
Add new Google-InspectionTool token to known bot UA list (vercel#50467
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks authored and hydRAnger committed Jun 12, 2023
1 parent 035ca64 commit e157348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/web/spec-extension/user-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface UserAgent {
}

export function isBot(input: string): boolean {
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(
input
)
}
Expand Down

0 comments on commit e157348

Please sign in to comment.