[ZeitBridge] Revert User-Agent (#3350)

The Googlebot User-Agent is no longer sufficient to circumvent the
paywall.
This commit is contained in:
Paul Prechtel 2023-04-17 15:33:14 +02:00 committed by GitHub
parent 7eca527160
commit 0718fdc829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class ZeitBridge extends FeedExpander
$headers = [ $headers = [
'Cookie: zonconsent=' . date('Y-m-d\TH:i:s.v\Z'), 'Cookie: zonconsent=' . date('Y-m-d\TH:i:s.v\Z'),
'User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)']; ];
// one-page article // one-page article
$article = getSimpleHTMLDOM($item['uri'], $headers); $article = getSimpleHTMLDOM($item['uri'], $headers);