From b4b00a57c1a787a5f1ce2cb152f78dce788e0918 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 2 May 2023 19:40:23 +0200 Subject: [PATCH] Update chrome user agent used for anti-bots --- module/Core/src/Util/UrlValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/src/Util/UrlValidator.php b/module/Core/src/Util/UrlValidator.php index 762fdd9f..1ab3e8f8 100644 --- a/module/Core/src/Util/UrlValidator.php +++ b/module/Core/src/Util/UrlValidator.php @@ -27,7 +27,7 @@ class UrlValidator implements UrlValidatorInterface, RequestMethodInterface { private const MAX_REDIRECTS = 15; private const CHROME_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) ' - . 'Chrome/108.0.0.0 Safari/537.36'; + . 'Chrome/112.0.0.0 Safari/537.36'; public function __construct(private ClientInterface $httpClient, private UrlShortenerOptions $options) {