From 37df3e503782143723ab272b330f6826c8d2a4dd Mon Sep 17 00:00:00 2001 From: evrifaessa Date: Thu, 12 Aug 2021 14:18:31 +0300 Subject: [PATCH] Updated user agent --- src/bb-library/Box/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Box/Tools.php b/src/bb-library/Box/Tools.php index 8f447739c..ba4f7650f 100644 --- a/src/bb-library/Box/Tools.php +++ b/src/bb-library/Box/Tools.php @@ -63,7 +63,7 @@ class Box_Tools public function get_url($url, $timeout = 10) { $ch = curl_init(); - $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'; + $userAgent = 'Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0'; curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);