From 7a36c3b34b82f7470d77e1028375ae14db6874be Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Wed, 24 Aug 2011 14:51:37 +0200 Subject: [ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots. PHPBB3-10335 --- phpBB/includes/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6b6679bde5..df49bdf637 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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; } -- cgit v1.2.1