mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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'] = [];
|
$item['enclosures'] = [];
|
||||||
|
|
||||||
$headers = [
|
$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'),
|
'Cookie: zonconsent=' . date('Y-m-d\TH:i:s.v\Z'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user