Skip to content

Commit

Permalink
update replaceFromURL's user-agent to avoid TI ban
Browse files Browse the repository at this point in the history
  • Loading branch information
h0m3us3r committed Dec 30, 2020
1 parent d5a9d1a commit 07a6ea7
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 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 ';
$browser .= 'Ubuntu/8.04 (hardy) Firefox/3.0.3';
$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';

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

0 comments on commit 07a6ea7

Please sign in to comment.