diff --git a/app/Checkers/VisualDiff.php b/app/Checkers/VisualDiff.php index b7f4c77..a191eaa 100644 --- a/app/Checkers/VisualDiff.php +++ b/app/Checkers/VisualDiff.php @@ -43,6 +43,7 @@ private function fetch() try { Browsershot::url($this->url) ->windowSize(1440, 1024) + ->userAgent(config('app.user_agent')) ->fullPage() ->waitUntilNetworkIdle() ->setDelay(5000) diff --git a/config/app.php b/config/app.php index ac3fdcd..3a06833 100644 --- a/config/app.php +++ b/config/app.php @@ -2,7 +2,7 @@ return [ - 'user_agent' => env('USER_AGENT', 'Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/; Odin)'), + 'user_agent' => env('USER_AGENT', 'Mozilla/5.0+(compatible; Googlebot/2.1; +http://www.google.com/bot.html; +Odin)'), // How many days of uptime to report on? This effects DB performance. 'max_uptime_age' => env('MAX_UPTIME_AGE', 90),