Skip to content

Commit

Permalink
change user-agent to a more generic one
Browse files Browse the repository at this point in the history
  • Loading branch information
h0m3us3r committed Dec 30, 2020
1 parent 07a6ea7 commit 094d08c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function replaceFromURL(UploadedFile $file, $url)
$header[] = 'Accept-Language: en-us,en;q=0.5';
$header[] = 'Pragma: ';

$browser = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 ';
$browser .= '(KHTML, like Gecko) Version/14.0.1 Safari/605.1.15';
$browser = 'Mozilla/5.0 (X11; Linux x86_64; rv:83.0) ';
$browser .= 'Gecko/20100101 Firefox/83.0';

curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, $browser);
Expand Down

0 comments on commit 094d08c

Please sign in to comment.