add applebot & bingbot to seo user-agent detection
This commit is contained in:
parent
9ef66b348b
commit
d5bd9bf3ad
@ -315,5 +315,5 @@ function capitalize(str) {
|
||||
}
|
||||
|
||||
function isSearchCrawler(useragent: string): boolean {
|
||||
return /googlebot/i.test(useragent);
|
||||
return /googlebot|applebot|bingbot/i.test(useragent);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user