From c33a109f4846db21ca06e76826064348b9ee77e8 Mon Sep 17 00:00:00 2001 From: Squibid Date: Wed, 27 Dec 2023 14:49:17 -0500 Subject: add user-agent to most requests and update other user agents --- scrapers/wallhaven.php | 1 + 1 file changed, 1 insertion(+) (limited to 'scrapers/wallhaven.php') diff --git a/scrapers/wallhaven.php b/scrapers/wallhaven.php index 78f56c7..56b44c7 100644 --- a/scrapers/wallhaven.php +++ b/scrapers/wallhaven.php @@ -15,6 +15,7 @@ if ($data) $url = sprintf("%s?%s", $url, http_build_query($data)); } + curl_setopt($curl, CURLOPT_HEADER, "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/120.0"); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); -- cgit v1.2.1