1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots.

PHPBB3-10335
This commit is contained in:
Andreas Fischer
2011-08-24 14:51:37 +02:00
parent 540ca1a8d8
commit 7a36c3b34b
2 changed files with 12 additions and 0 deletions

View File

@@ -4641,6 +4641,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;
}