mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[ZeitBridge] Re-add paywall workaround (#3352)
Additionally to the Googlebot User-Agent, a Googlebot IP address has to be used. For now, we can use `X-Forwarded-For` for this.
This commit is contained in:
parent
7c4591c550
commit
4068668de9
@ -66,6 +66,8 @@ class ZeitBridge extends FeedExpander
|
||||
$item['enclosures'] = [];
|
||||
|
||||
$headers = [
|
||||
'User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
|
||||
'X-Forwarded-For: 66.249.66.1',
|
||||
'Cookie: zonconsent=' . date('Y-m-d\TH:i:s.v\Z'),
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user