From 4068668de917a28f46847fb4b96b473a0d7f47ab Mon Sep 17 00:00:00 2001 From: Paul Prechtel Date: Tue, 18 Apr 2023 18:41:40 +0200 Subject: [PATCH] [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. --- bridges/ZeitBridge.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridges/ZeitBridge.php b/bridges/ZeitBridge.php index b294e9fb..a9e4bcf2 100644 --- a/bridges/ZeitBridge.php +++ b/bridges/ZeitBridge.php @@ -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'), ];