Skip to content

Commit

Permalink
Merge pull request #21 from thoop/patch-1
Browse files Browse the repository at this point in the history
Added googlebot, bingbot, yandex to list of user agents being checked
  • Loading branch information
bakura10 authored Jul 22, 2018
2 parents c620418 + dc3b8fb commit 63e656f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
// Prerender service URL
'prerender_url' => 'http://service.prerender.io',

// Some widely used crawler user agents (Google Bot, Yahoo and BingBot are not in this list because
// we support _escaped_fragment_ and want to ensure people aren't penalized for cloaking).
'crawler_user_agents' => [
'googlebot',
'bingbot',
'yandex',
'baiduspider',
'facebookexternalhit',
'twitterbot',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testCanCreateOptions()
$options = $serviceManager->get('ZfrPrerender\Options\ModuleOptions');

$expectedCrawlerUserAgents = [
'baiduspider', 'facebookexternalhit', 'twitterbot', 'rogerbot', 'linkedinbot',
'googlebot', 'bingbot', 'yandex', 'baiduspider', 'facebookexternalhit', 'twitterbot', 'rogerbot', 'linkedinbot',
'embedly', 'bufferbot', 'quora link preview', 'showyoubot', 'outbrain'
];

Expand Down

0 comments on commit 63e656f

Please sign in to comment.