mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots.
This commit is contained in:
@@ -4584,6 +4584,12 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||
header('Expires: 0');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
if (!empty($user->data['is_bot']))
|
||||
{
|
||||
// Let reverse proxies know we detected a bot.
|
||||
header('X-PHPBB-IS-BOT: yes');
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user