aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-08-24 14:51:37 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-08-24 14:51:37 +0200
commit7a36c3b34b82f7470d77e1028375ae14db6874be (patch)
treefdacfe107ab13bb5d0de6321976120c0c4e77111 /phpBB/includes/functions.php
parent540ca1a8d88279b120b142c244c96c9fae9a867b (diff)
downloadforums-7a36c3b34b82f7470d77e1028375ae14db6874be.tar
forums-7a36c3b34b82f7470d77e1028375ae14db6874be.tar.gz
forums-7a36c3b34b82f7470d77e1028375ae14db6874be.tar.bz2
forums-7a36c3b34b82f7470d77e1028375ae14db6874be.tar.xz
forums-7a36c3b34b82f7470d77e1028375ae14db6874be.zip
[ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots.
PHPBB3-10335
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 6 insertions, 0 deletions
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;
}