Skip to content

Commit 7f58636

Browse files
committed
[fetch]: apply marreta bypass
1 parent 4ea5d11 commit 7f58636

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/src/Commands/FeedProcessor.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ public function __construct(CLImate $climate)
3030
'track_redirects' => true
3131
],
3232
'headers' => [
33-
'User-Agent' => 'Meta-ExternalFetcher'
33+
'User-Agent' => 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
34+
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
35+
'Accept-Language' => 'en-US,en;q=0.5',
36+
'Cache-Control' => 'no-cache',
37+
'Pragma' => 'no-cache',
38+
'DNT' => '1',
39+
'X-Forwarded-For' => '66.249.' . rand(64, 95) . '.' . rand(1, 254),
40+
'From' => 'googlebot(at)googlebot.com'
41+
],
42+
'curl' => [
43+
CURLOPT_DNS_SERVERS => '8.8.8.8'
3444
]
3545
]);
3646
}

0 commit comments

Comments
 (0)